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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h

Issue 14556015: [Media Galleries] Lazily initialize the storage monitor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on prefs Created 7 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
Index: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
index c1d38293ec20274e106da6f7d53c028fb3fbf365..073e5aac0efe39d2145f745c058738cb3c88150d 100644
--- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
+++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
@@ -108,6 +108,8 @@ class MediaGalleriesPrivateAddGalleryWatchFunction
virtual bool RunImpl() OVERRIDE;
private:
+ void OnStorageMonitorInit(chrome::MediaGalleryPrefId pref_id);
vandebo (ex-Chrome) 2013/05/23 15:04:17 Is the implementation of these missing?
Greg Billock 2013/05/30 22:17:47 Added
+
// Gallery watch request handler.
void HandleResponse(chrome::MediaGalleryPrefId gallery_id,
bool success);
@@ -115,7 +117,7 @@ class MediaGalleriesPrivateAddGalleryWatchFunction
// Implements the chrome.mediaGalleriesPrivate.removeGalleryWatch method.
class MediaGalleriesPrivateRemoveGalleryWatchFunction
- : public SyncExtensionFunction {
+ : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeGalleryWatch",
MEDIAGALLERIESPRIVATE_REMOVEGALLERYWATCH);
@@ -125,6 +127,9 @@ class MediaGalleriesPrivateRemoveGalleryWatchFunction
// SyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void OnStorageMonitorInit(chrome::MediaGalleryPrefId pref_id);
};
// Implements the chrome.mediaGalleriesPrivate.getAllGalleryWatch method.

Powered by Google App Engine
This is Rietveld 408576698