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

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

Issue 341050: Implement loading blacklists from extensions.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: use real extension Created 11 years, 1 month 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/extensions_service.h
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index 6d525d7183606b0f42e6db7f8fc5ce1f5adfdf36..55e336d4eaa0e177208780c080b2fde89d5015df 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.
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698