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

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: Make clang happy Created 9 years, 4 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 5ad3b23fb8e713a6b2ab0c4b738ec8072da31ee5..68d2368976ec69ba73e0133bd28988a756f305c7 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -51,6 +51,7 @@ class ExtensionInstallUI;
class ExtensionManagementEventRouter;
class ExtensionPreferenceEventRouter;
class ExtensionServiceBackend;
+class ExtensionSettings;
struct ExtensionSyncData;
class ExtensionToolbarModel;
class ExtensionUpdater;
@@ -162,6 +163,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.
@@ -196,6 +201,7 @@ class ExtensionService
const CommandLine* command_line,
const FilePath& install_directory,
ExtensionPrefs* extension_prefs,
+ ExtensionSettings* extension_settings,
bool autoupdate_enabled,
bool extensions_enabled);
@@ -458,6 +464,8 @@ class ExtensionService
// ExtensionPrefs* mutable_extension_prefs().
ExtensionPrefs* extension_prefs();
+ ExtensionSettings* extension_settings();
+
ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
// Whether the extension service is ready.
@@ -645,6 +653,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_;
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698