Index: extensions/browser/extensions_browser_client.h |
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h |
index 6331dae5c278279c3e9d14bae0882ec7298f4681..61641a7931abcc21f4bd1c1107c832a3c2b84747 100644 |
--- a/extensions/browser/extensions_browser_client.h |
+++ b/extensions/browser/extensions_browser_client.h |
@@ -7,6 +7,9 @@ |
#include "base/memory/scoped_ptr.h" |
+class CommandLine; |
+class PrefService; |
+ |
namespace content { |
class BrowserContext; |
} |
@@ -28,6 +31,11 @@ class ExtensionsBrowserClient { |
// Returns true if the embedder has started shutting down. |
virtual bool IsShuttingDown() = 0; |
+ // Returns true if extensions have been disabled (e.g. via a command-line flag |
+ // or preference). |
+ virtual bool AreExtensionsDisabled(const CommandLine& command_line, |
+ content::BrowserContext* context) = 0; |
+ |
// Returns true if the |context| is known to the embedder. |
virtual bool IsValidContext(content::BrowserContext* context) = 0; |
@@ -51,6 +59,10 @@ class ExtensionsBrowserClient { |
virtual content::BrowserContext* GetOriginalContext( |
content::BrowserContext* context) = 0; |
+ // Returns the PrefService associated with |context|. |
+ virtual PrefService* GetPrefServiceForContext( |
+ content::BrowserContext* context) = 0; |
+ |
// Returns true if loading background pages should be deferred. |
virtual bool DeferLoadingBackgroundHosts( |
content::BrowserContext* context) const = 0; |