diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 11:11:34 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 11:11:34 +0000 |
commit | 24e7a9d2b4d7925ca25d2cdf75808d3ff88b5f6e (patch) | |
tree | 809ce617d8e41b1ba284eba33694af966654fb87 /chrome/browser/extensions/extensions_service.h | |
parent | a6cf2a3e9f1d7b44dda39975139f5ae39524e363 (diff) | |
download | chromium_src-24e7a9d2b4d7925ca25d2cdf75808d3ff88b5f6e.zip chromium_src-24e7a9d2b4d7925ca25d2cdf75808d3ff88b5f6e.tar.gz chromium_src-24e7a9d2b4d7925ca25d2cdf75808d3ff88b5f6e.tar.bz2 |
Implement loading blacklists from extensions.
It doesn't yet work in full-browser scenario, but allows me
to write a simple test.
TEST=Covered by browser_tests.
BUG=21541
Review URL: http://codereview.chromium.org/341050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service.h')
-rw-r--r-- | chrome/browser/extensions/extensions_service.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h index 6d525d7..55e336d 100644 --- a/chrome/browser/extensions/extensions_service.h +++ b/chrome/browser/extensions/extensions_service.h @@ -21,6 +21,7 @@ #include "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/extensions/external_extension_provider.h" #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" +#include "chrome/browser/privacy_blacklist/blacklist_manager.h" #include "chrome/common/extensions/extension.h" class Browser; @@ -51,6 +52,7 @@ class ExtensionUpdateService { // Manages installed and running Chromium extensions. class ExtensionsService : public ExtensionUpdateService, + public BlacklistPathProvider, public base::RefCountedThreadSafe<ExtensionsService> { public: @@ -201,6 +203,8 @@ class ExtensionsService return show_extensions_prompts_; } + Profile* profile() { return profile_; } + // Profile calls this when it is destroyed so that we know not to call it. void ProfileDestroyed() { profile_ = NULL; } @@ -219,6 +223,10 @@ class ExtensionsService NotificationType type, bool be_noisy); + // BlacklistPathProvider: + virtual std::vector<FilePath> GetPersistentBlacklistPaths(); + virtual std::vector<FilePath> GetTransientBlacklistPaths(); + private: // Look up an extension by ID, optionally including either or both of enabled // and disabled extensions. |