#include "chrome/services/media_gallery_util/public/cpp/safe_media_metadata_parser.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
SafeMediaMetadataParser::SafeMediaMetadataParser(
int64_t size,
const std::string& mime_type,
bool get_attached_images,
std::unique_ptr<MediaDataSourceFactory> media_source_factory)
: … { … }
SafeMediaMetadataParser::~SafeMediaMetadataParser() = default;
void SafeMediaMetadataParser::Start(DoneCallback callback) { … }
void SafeMediaMetadataParser::OnMediaParserCreated() { … }
void SafeMediaMetadataParser::OnConnectionError() { … }
void SafeMediaMetadataParser::ParseMediaMetadataDone(
bool parse_success,
chrome::mojom::MediaMetadataPtr metadata,
const std::vector<metadata::AttachedImage>& attached_images) { … }
void SafeMediaMetadataParser::OnMediaDataReady(
chrome::mojom::MediaDataSource::ReadCallback callback,
std::string data) { … }