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

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

Issue 224963010: Media Galleries: Add a dropPermissionForMediaFileSystem() API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renamed, fixed JS metadata 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/browser/extensions/api/media_galleries/media_galleries_api.h
===================================================================
--- chrome/browser/extensions/api/media_galleries/media_galleries_api.h (revision 261942)
+++ chrome/browser/extensions/api/media_galleries/media_galleries_api.h (working copy)
@@ -179,6 +179,21 @@
void GetMediaFileSystemsForExtension(const MediaFileSystemsCallback& cb);
};
+class MediaGalleriesDropPermissionForMediaFileSystemFunction
+ : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("mediaGalleries.dropPermissionForMediaFileSystem",
+ MEDIAGALLERIES_DROPPERMISSIONFORMEDIAFILESYSTEM)
+
+ protected:
+ virtual ~MediaGalleriesDropPermissionForMediaFileSystemFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ // Bottom half for RunImpl, invoked after the preferences is initialized.
+ void OnPreferencesInit(MediaGalleryPrefId pref_id);
+};
+
class MediaGalleriesStartMediaScanFunction
: public ChromeAsyncExtensionFunction {
public:

Powered by Google App Engine
This is Rietveld 408576698