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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.h

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromium_chromeos_rel argument evaluation order bug Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/media_galleries/media_galleries_api.h
diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
index ee876b21240360a30dfd75b4ab03831ecb61fa40..17c8711a83d57ed120fc11cbbfab0eaf03eae1ba 100644
--- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
+++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h
@@ -27,6 +27,7 @@ namespace MediaGalleries = extensions::api::media_galleries;
class MediaGalleriesScanResultDialogController;
namespace content {
+class BlobHandle;
class WebContents;
}
@@ -264,16 +265,23 @@ class MediaGalleriesGetMetadataFunction : public ChromeAsyncExtensionFunction {
private:
// Bottom half for RunAsync, invoked after the preferences is initialized.
- void OnPreferencesInit(bool mime_type_only, const std::string& blob_uuid);
+ void OnPreferencesInit(MediaGalleries::GetMetadataType metadata_type,
+ const std::string& blob_uuid);
- void SniffMimeType(bool mime_type_only,
- const std::string& blob_uuid,
- scoped_ptr<std::string> blob_header,
- int64 total_blob_length);
+ void GetMetadata(MediaGalleries::GetMetadataType metadata_type,
+ const std::string& blob_uuid,
+ scoped_ptr<std::string> blob_header,
+ int64 total_blob_length);
void OnSafeMediaMetadataParserDone(
- bool parse_success, scoped_ptr<base::DictionaryValue> metadata_dictionary,
+ bool parse_success, scoped_ptr<base::DictionaryValue> result_dictionary,
scoped_ptr<std::vector<metadata::AttachedImage> > attached_images);
+
+ void ConstructNextBlob(
+ scoped_ptr<base::DictionaryValue> result_dictionary,
+ scoped_ptr<std::vector<metadata::AttachedImage> > attached_images,
+ scoped_ptr<std::vector<std::string> > blob_uuids,
+ scoped_ptr<content::BlobHandle> current_blob);
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698