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

Unified Diff: extensions/browser/extensions_browser_client.h

Issue 220353002: Remove //chrome dependency from ExtensionPrefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't ref ContentSettingsStore if !ENABLE_EXTENSIONS Created 6 years, 9 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
« no previous file with comments | « extensions/browser/extension_prefs_observer.h ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extensions_browser_client.h
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index 2e3d26d8aede6914eb6d4679336179ee51ca8bcf..f9e63e5c828f8e061fefda9e00922ac4ae87558f 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "extensions/browser/extension_prefs_observer.h"
class ExtensionFunctionRegistry;
class PrefService;
@@ -28,6 +29,7 @@ class ApiActivityMonitor;
class AppSorting;
class Extension;
class ExtensionHostDelegate;
+class ExtensionPrefsObserver;
class ExtensionSystem;
class ExtensionSystemProvider;
@@ -90,6 +92,13 @@ class ExtensionsBrowserClient {
virtual PrefService* GetPrefServiceForContext(
content::BrowserContext* context) = 0;
+ // Populates a list of ExtensionPrefs observers to be attached to each
+ // BrowserContext's ExtensionPrefs upon construction. These observers
+ // are not owned by ExtensionPrefs.
+ virtual void GetEarlyExtensionPrefsObservers(
+ content::BrowserContext* context,
+ std::vector<ExtensionPrefsObserver*>* observers) const = 0;
+
// Returns true if loading background pages should be deferred.
virtual bool DeferLoadingBackgroundHosts(
content::BrowserContext* context) const = 0;
« no previous file with comments | « extensions/browser/extension_prefs_observer.h ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698