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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 10824116: Store Media gallery permissions in extension prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 70565fa95f8822c8b3f26ac17c9ad31b6136cfd5..cf630dc154ea542f470340f5425e5d07eecfef97 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -16,6 +16,7 @@
#include "chrome/browser/extensions/extension_prefs_scope.h"
#include "chrome/browser/extensions/extension_scoped_prefs.h"
#include "chrome/browser/extensions/management_policy.h"
+#include "chrome/browser/media_gallery/media_galleries_preferences.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/url_pattern_set.h"
#include "chrome/common/string_ordinal.h"
@@ -321,6 +322,14 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
const Extension* extension,
LaunchType default_pref_value);
+ // Set and retrieve permissions for media galleries as identified by the
+ // gallery id.
+ void SetMediaGalleryPermission(const std::string& extension_id,
+ MediaGalleryPrefId gallery, bool has_access);
Evan Stade 2012/07/31 20:29:47 The object should be a const&, and I think it make
vandebo (ex-Chrome) 2012/08/01 01:01:10 The extension prefs don't need to know any of the
Evan Stade 2012/08/01 04:29:37 yea, you're right. I failed to look at what file t
+ std::vector<MediaGalleryPermission> GetMediaGalleryPermissions(
+ const std::string& extension_id);
Evan Stade 2012/07/31 20:29:47 nit: too much indent
vandebo (ex-Chrome) 2012/08/01 18:28:25 Oops, need to fix my home vim settings. Fixed.
+ void RemoveMediaGalleryPermissions(MediaGalleryPrefId gallery_id);
+
// Saves ExtensionInfo for each installed extension with the path to the
// version directory and the location. Blacklisted extensions won't be saved
// and neither will external extensions the user has explicitly uninstalled.

Powered by Google App Engine
This is Rietveld 408576698