Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5966)

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 7390adb3e50d85838ae4d1e3f79037af7f2f7723..5432cf8bd25f7897c3fb8bf025f2a955fade9f72 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -303,9 +303,12 @@ typedef PdfFunctionsBase PdfFunctions;
#if !defined(OS_ANDROID) && !defined(OS_IOS)
void FinishParseMediaMetadata(
metadata::MediaMetadataParser* parser,
- scoped_ptr<extensions::api::media_galleries::MediaMetadata> metadata) {
+ scoped_ptr<extensions::api::media_galleries::MediaMetadata> metadata,
+ const std::vector<std::string>& attached_pictures_bytes,
+ const std::vector<std::string>& attached_pictures_types) {
Send(new ChromeUtilityHostMsg_ParseMediaMetadata_Finished(
- true, *(metadata->ToValue().get())));
+ true, *(metadata->ToValue().get()), attached_pictures_bytes,
+ attached_pictures_types));
ReleaseProcessIfNeeded();
}
#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
@@ -919,14 +922,14 @@ void ChromeContentUtilityClient::OnCheckMediaFile(
}
void ChromeContentUtilityClient::OnParseMediaMetadata(
- const std::string& mime_type,
- int64 total_size) {
+ const std::string& mime_type, int64 total_size,
+ bool get_attached_pictures) {
// Only one IPCDataSource may be created and added to the list of handlers.
metadata::IPCDataSource* source = new metadata::IPCDataSource(total_size);
handlers_.push_back(source);
- metadata::MediaMetadataParser* parser =
- new metadata::MediaMetadataParser(source, mime_type);
+ metadata::MediaMetadataParser* parser = new metadata::MediaMetadataParser(
+ source, mime_type, get_attached_pictures);
parser->Start(base::Bind(&FinishParseMediaMetadata, base::Owned(parser)));
}
#endif // !defined(OS_ANDROID) && !defined(OS_IOS)

Powered by Google App Engine
This is Rietveld 408576698