diff options
author | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-30 17:21:41 +0000 |
---|---|---|
committer | battre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-30 17:21:41 +0000 |
commit | 3dfa4c08bd73745edd13e38b9d832eac0dabd925 (patch) | |
tree | a7c16fbfdc08f8d7e7d85f8402bc49ca12f8f249 /chrome/browser/extensions/extension_system.h | |
parent | 9a80715bd54cf030c89a9b0941551fe8bc028df9 (diff) | |
download | chromium_src-3dfa4c08bd73745edd13e38b9d832eac0dabd925.zip chromium_src-3dfa4c08bd73745edd13e38b9d832eac0dabd925.tar.gz chromium_src-3dfa4c08bd73745edd13e38b9d832eac0dabd925.tar.bz2 |
Refactor and fix declarative webRequest API permissions
This CL introduces proper host permission checking for the declarative webRequest API. It moves the permission checking code from web_request_api.cc into a separate class that is shared with the declarative WebRequest API.
BUG=112155
TEST=no
TBR=mirandac@chromium.org,akalin@chromium.org,ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10831008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_system.h')
-rw-r--r-- | chrome/browser/extensions/extension_system.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_system.h b/chrome/browser/extensions/extension_system.h index bf225c0..9cf70bd 100644 --- a/chrome/browser/extensions/extension_system.h +++ b/chrome/browser/extensions/extension_system.h @@ -58,7 +58,9 @@ class ExtensionSystem : public ProfileKeyedService { // Initializes extensions machinery. // Component extensions are always enabled, external and user extensions // are controlled by |extensions_enabled|. - virtual void Init(bool extensions_enabled) = 0; + virtual void InitForRegularProfile(bool extensions_enabled) = 0; + + virtual void InitForOTRProfile() = 0; // The ExtensionService is created at startup. virtual ExtensionService* extension_service() = 0; @@ -139,7 +141,8 @@ class ExtensionSystemImpl : public ExtensionSystem { // ProfileKeyedService implementation. virtual void Shutdown() OVERRIDE; - virtual void Init(bool extensions_enabled) OVERRIDE; + virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE; + virtual void InitForOTRProfile() OVERRIDE; virtual ExtensionService* extension_service() OVERRIDE; // shared virtual ManagementPolicy* management_policy() OVERRIDE; // shared @@ -193,7 +196,6 @@ class ExtensionSystemImpl : public ExtensionSystem { LazyBackgroundTaskQueue* lazy_background_task_queue(); MessageService* message_service(); EventRouter* event_router(); - RulesRegistryService* rules_registry_service(); private: Profile* profile_; @@ -213,7 +215,6 @@ class ExtensionSystemImpl : public ExtensionSystem { scoped_ptr<MessageService> message_service_; scoped_ptr<EventRouter> extension_event_router_; scoped_ptr<ExtensionNavigationObserver> extension_navigation_observer_; - scoped_ptr<RulesRegistryService> rules_registry_service_; }; Profile* profile_; @@ -232,6 +233,7 @@ class ExtensionSystemImpl : public ExtensionSystem { scoped_ptr<ApiResourceManager<Socket> > socket_manager_; scoped_ptr<ApiResourceManager< UsbDeviceResource> > usb_device_resource_manager_; + scoped_ptr<RulesRegistryService> rules_registry_service_; DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); }; |