Chromium Code Reviews| 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 7e1208c3350f4a669aa4791d3c40d3160ba20d08..a0486b873fd28e623529617f68bacf89b9dbb13c 100644 |
| --- a/chrome/browser/extensions/api/media_galleries/media_galleries_api.h |
| +++ b/chrome/browser/extensions/api/media_galleries/media_galleries_api.h |
| @@ -298,6 +298,75 @@ class MediaGalleriesGetMetadataFunction : public ChromeAsyncExtensionFunction { |
| scoped_ptr<content::BlobHandle> current_blob); |
| }; |
| +// Implements the chrome.mediaGalleries.addGalleryWatch method. |
|
tommycli
2014/08/19 16:36:02
Since the other classes don't have this comment in
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| +class MediaGalleriesAddGalleryWatchFunction |
| + : public ChromeAsyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("mediaGalleries.addGalleryWatch", |
| + MEDIAGALLERIES_ADDGALLERYWATCH); |
| + |
| + protected: |
| + virtual ~MediaGalleriesAddGalleryWatchFunction(); |
| + |
| + // AsyncExtensionFunction overrides. |
|
tommycli
2014/08/19 16:36:02
Also remove this comment and above newline, make c
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| + virtual bool RunAsync() OVERRIDE; |
| + |
| + private: |
| + void OnPreferencesInit(const std::string& pref_id); |
| + |
| + // Gallery watch request handler. |
| + void HandleResponse(MediaGalleryPrefId gallery_id, const std::string& error); |
| +}; |
| + |
| +// Implements the chrome.mediaGalleries.removeGalleryWatch method. |
|
tommycli
2014/08/19 16:36:02
Ditto on this comment.
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| +class MediaGalleriesRemoveGalleryWatchFunction |
| + : public ChromeAsyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("mediaGalleries.removeGalleryWatch", |
| + MEDIAGALLERIES_REMOVEGALLERYWATCH); |
| + |
| + protected: |
| + virtual ~MediaGalleriesRemoveGalleryWatchFunction(); |
| + |
| + // SyncExtensionFunction overrides. |
|
tommycli
2014/08/19 16:36:02
Remove comment and above newline. This comment is
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| + virtual bool RunAsync() OVERRIDE; |
| + |
| + private: |
| + void OnPreferencesInit(const std::string& pref_id); |
| +}; |
| + |
| +// Implements the chrome.mediaGalleries.getAllGalleryWatch method. |
|
tommycli
2014/08/19 16:36:02
Ditto
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| +class MediaGalleriesGetAllGalleryWatchFunction |
| + : public ChromeAsyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("mediaGalleries.getAllGalleryWatch", |
| + MEDIAGALLERIES_GETALLGALLERYWATCH); |
| + protected: |
| + virtual ~MediaGalleriesGetAllGalleryWatchFunction(); |
| + |
| + // SyncExtensionFunction overrides. |
|
tommycli
2014/08/19 16:36:02
Ditto
Oren Blasberg
2014/08/20 22:59:37
Done.
|
| + virtual bool RunAsync() OVERRIDE; |
| + |
| + private: |
| + void OnPreferencesInit(); |
| +}; |
| + |
| +// Implements the chrome.mediaGalleries.removeAllGalleryWatch method. |
|
tommycli
2014/08/19 16:36:02
Ditto
Oren Blasberg
2014/08/20 22:59:36
Done.
|
| +class MediaGalleriesRemoveAllGalleryWatchFunction |
| + : public ChromeAsyncExtensionFunction { |
| + public: |
| + DECLARE_EXTENSION_FUNCTION("mediaGalleries.removeAllGalleryWatch", |
| + MEDIAGALLERIES_REMOVEALLGALLERYWATCH); |
| + protected: |
| + virtual ~MediaGalleriesRemoveAllGalleryWatchFunction(); |
| + |
| + // SyncExtensionFunction overrides. |
|
tommycli
2014/08/19 16:36:02
Ditto
Oren Blasberg
2014/08/20 22:59:36
Done.
|
| + virtual bool RunAsync() OVERRIDE; |
| + |
| + private: |
| + void OnPreferencesInit(); |
| +}; |
| + |
| } // namespace extensions |
| #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ |