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

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: nits, pull out ExtensionPrefsObserver 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
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..446585fc93afe2a5d5ba63d39c3ab4ec2418aef4 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 GetAdditionalExtensionPrefsObservers(
+ 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;

Powered by Google App Engine
This is Rietveld 408576698