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

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: Switch approaches 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 af0e1ea8707defe8459735fddaf9918714abd059..2f04aba57d139196f8bef450963ee30f006f204c 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,9 @@ class MediaGalleriesPrivateAddGalleryWatchFunction
virtual bool RunImpl() OVERRIDE;
private:
+ void OnPreferences(chrome::MediaGalleryPrefId pref_id,
+ chrome::MediaGalleriesPreferences::Vendor* vendor);
+
// Gallery watch request handler.
void HandleResponse(chrome::MediaGalleryPrefId gallery_id,
bool success);
@@ -115,7 +118,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 +128,10 @@ class MediaGalleriesPrivateRemoveGalleryWatchFunction
// SyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void OnPreferences(chrome::MediaGalleryPrefId pref_id,
+ chrome::MediaGalleriesPreferences::Vendor* vendor);
};
// Implements the chrome.mediaGalleriesPrivate.getAllGalleryWatch method.
@@ -151,6 +158,11 @@ class MediaGalleriesPrivateRemoveAllGalleryWatchFunction
// SyncExtensionFunction overrides.
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void OnPreferences(
+ chrome::MediaGalleriesPreferences::Vendor* vendor,
+ chrome::MediaGalleryPrefId pref_id);
};
// Implements the chrome.mediaGalleriesPrivate.ejectDevice method.

Powered by Google App Engine
This is Rietveld 408576698