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

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

Issue 7189029: Implement an initial extension settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Change where extension settings are saved, update TODO, api test Created 9 years, 6 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_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 3bed716201543043d856b891e76783934e819fad..46b48c0dc890541fa9fa27e90a16a215baabc711 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -44,6 +44,7 @@ class ExtensionContentSettingsStore;
class ExtensionInstallUI;
class ExtensionPreferenceEventRouter;
class ExtensionServiceBackend;
+class ExtensionSettings;
struct ExtensionSyncData;
class ExtensionToolbarModel;
class ExtensionUpdater;
@@ -152,6 +153,10 @@ class ExtensionService
// The name of the file that the current active version number is stored in.
static const char* kCurrentVersionFileName;
+ // The name of the directory inside the profile where per-extension settings
+ // are stored.
+ static const char* kSettingsDirectoryName;
+
// Determine if a given extension download should be treated as if it came
// from the gallery. Note that this is requires *both* that the download_url
// match and that the download was referred from a gallery page.
@@ -186,6 +191,7 @@ class ExtensionService
const CommandLine* command_line,
const FilePath& install_directory,
ExtensionPrefs* extension_prefs,
+ ExtensionSettings* extension_settings,
bool autoupdate_enabled,
bool extensions_enabled);
@@ -429,6 +435,8 @@ class ExtensionService
// ExtensionPrefs* mutable_extension_prefs().
ExtensionPrefs* extension_prefs();
+ ExtensionSettings* extension_settings();
+
ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
// Whether the extension service is ready.
@@ -603,6 +611,9 @@ class ExtensionService
// Preferences for the owning profile (weak reference).
ExtensionPrefs* extension_prefs_;
+ // Settings for the owning profile (weak reference).
+ ExtensionSettings* extension_settings_;
+
// The current list of installed extensions.
// TODO(aa): This should use chrome/common/extensions/extension_set.h.
ExtensionList extensions_;

Powered by Google App Engine
This is Rietveld 408576698