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

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: dgrogan comments #2, mihai comments #1 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 7aae4ec432189b2ff7d2328b71e2918b4d4c9535..d9f35de1feb92df87ce338d1d5cf1c676695981f 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;
@@ -154,6 +155,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.
@@ -188,6 +193,7 @@ class ExtensionService
const CommandLine* command_line,
const FilePath& install_directory,
ExtensionPrefs* extension_prefs,
+ ExtensionSettings* extension_settings,
bool autoupdate_enabled,
bool extensions_enabled);
@@ -437,6 +443,8 @@ class ExtensionService
// ExtensionPrefs* mutable_extension_prefs().
ExtensionPrefs* extension_prefs();
+ ExtensionSettings* extension_settings();
+
ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
// Whether the extension service is ready.
@@ -611,6 +619,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