summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extensions_browser_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/browser/extensions_browser_client.h')
-rw-r--r--extensions/browser/extensions_browser_client.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index 4810836..dd78811 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -29,7 +29,7 @@ class ExtensionsBrowserClient {
virtual bool IsSameContext(content::BrowserContext* first,
content::BrowserContext* second) = 0;
- // Returns true if |context| has an off-the-record content associated with it.
+ // Returns true if |context| has an off-the-record context associated with it.
virtual bool HasOffTheRecordContext(content::BrowserContext* context) = 0;
// Returns the off-the-record context associated with |context|. If |context|
@@ -39,6 +39,15 @@ class ExtensionsBrowserClient {
virtual content::BrowserContext* GetOffTheRecordContext(
content::BrowserContext* context) = 0;
+ // Return the original "recording" context. This method returns |context| if
+ // |context| is not incognito.
+ virtual content::BrowserContext* GetOriginalContext(
+ content::BrowserContext* context) = 0;
+
+ // Returns true if loading background pages should be deferred.
+ virtual bool DeferLoadingBackgroundHosts(
+ content::BrowserContext* context) const = 0;
+
// Returns the single instance of |this|.
static ExtensionsBrowserClient* Get();