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

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 52983004: Convert ExtensionProcessManager to BrowserContext, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, add browser test Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 namespace content { 8 namespace content {
9 class BrowserContext; 9 class BrowserContext;
10 } 10 }
(...skipping 11 matching lines...) Expand all
22 virtual ~ExtensionsBrowserClient() {} 22 virtual ~ExtensionsBrowserClient() {}
23 23
24 // Returns true if the embedder has started shutting down. 24 // Returns true if the embedder has started shutting down.
25 virtual bool IsShuttingDown() = 0; 25 virtual bool IsShuttingDown() = 0;
26 26
27 // Returns true if the BrowserContexts could be considered equivalent, for 27 // Returns true if the BrowserContexts could be considered equivalent, for
28 // example, if one is an off-the-record context owned by the other. 28 // example, if one is an off-the-record context owned by the other.
29 virtual bool IsSameContext(content::BrowserContext* first, 29 virtual bool IsSameContext(content::BrowserContext* first,
30 content::BrowserContext* second) = 0; 30 content::BrowserContext* second) = 0;
31 31
32 // Returns true if |context| has an off-the-record content associated with it. 32 // Returns true if |context| has an off-the-record context associated with it.
miket_OOO 2013/10/31 23:04:53 thanks!
33 virtual bool HasOffTheRecordContext(content::BrowserContext* context) = 0; 33 virtual bool HasOffTheRecordContext(content::BrowserContext* context) = 0;
34 34
35 // Returns the off-the-record context associated with |context|. If |context| 35 // Returns the off-the-record context associated with |context|. If |context|
36 // is already off-the-record, returns |context|. 36 // is already off-the-record, returns |context|.
37 // WARNING: This may create a new off-the-record context. To avoid creating 37 // WARNING: This may create a new off-the-record context. To avoid creating
38 // another context, check HasOffTheRecordContext() first. 38 // another context, check HasOffTheRecordContext() first.
39 virtual content::BrowserContext* GetOffTheRecordContext( 39 virtual content::BrowserContext* GetOffTheRecordContext(
40 content::BrowserContext* context) = 0; 40 content::BrowserContext* context) = 0;
41 41
42 // Return the original "recording" context. This method returns |context| if
43 // |context| is not incognito.
44 virtual content::BrowserContext* GetOriginalContext(
45 content::BrowserContext* context) = 0;
46
47 // Returns true if loading background pages should be deferred.
48 virtual bool DeferLoadingBackgroundHosts(
49 content::BrowserContext* context) const = 0;
50
42 // Returns the single instance of |this|. 51 // Returns the single instance of |this|.
43 static ExtensionsBrowserClient* Get(); 52 static ExtensionsBrowserClient* Get();
44 53
45 // Initialize the single instance. 54 // Initialize the single instance.
46 static void Set(ExtensionsBrowserClient* client); 55 static void Set(ExtensionsBrowserClient* client);
47 }; 56 };
48 57
49 } // namespace extensions 58 } // namespace extensions
50 59
51 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 60 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698