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

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

Issue 870163002: Move networking_private to src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Linux fix Created 5 years, 11 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 unified diff | Download patch
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 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // WARNING: This may create a new off-the-record context. To avoid creating 81 // WARNING: This may create a new off-the-record context. To avoid creating
82 // another context, check HasOffTheRecordContext() first. 82 // another context, check HasOffTheRecordContext() first.
83 virtual content::BrowserContext* GetOffTheRecordContext( 83 virtual content::BrowserContext* GetOffTheRecordContext(
84 content::BrowserContext* context) = 0; 84 content::BrowserContext* context) = 0;
85 85
86 // Returns the original "recording" context. This method returns |context| if 86 // Returns the original "recording" context. This method returns |context| if
87 // |context| is not incognito. 87 // |context| is not incognito.
88 virtual content::BrowserContext* GetOriginalContext( 88 virtual content::BrowserContext* GetOriginalContext(
89 content::BrowserContext* context) = 0; 89 content::BrowserContext* context) = 0;
90 90
91 // Returns a consistent unqiue Id hash for |context|.
James Cook 2015/01/24 03:59:24 nit: unqiue -> unique... and maybe give a bit more
stevenjb 2015/01/26 20:36:19 I copied and rephrased the comment from profile_he
92 virtual std::string GetUserIdHashFromContext(
93 content::BrowserContext* context) = 0;
94
91 // Returns true if |context| corresponds to a guest session. 95 // Returns true if |context| corresponds to a guest session.
92 virtual bool IsGuestSession(content::BrowserContext* context) const = 0; 96 virtual bool IsGuestSession(content::BrowserContext* context) const = 0;
93 97
94 // Returns true if |extension_id| can run in an incognito window. 98 // Returns true if |extension_id| can run in an incognito window.
95 virtual bool IsExtensionIncognitoEnabled( 99 virtual bool IsExtensionIncognitoEnabled(
96 const std::string& extension_id, 100 const std::string& extension_id,
97 content::BrowserContext* context) const = 0; 101 content::BrowserContext* context) const = 0;
98 102
99 // Returns true if |extension| can see events and data from another 103 // Returns true if |extension| can see events and data from another
100 // sub-profile (incognito to original profile, or vice versa). 104 // sub-profile (incognito to original profile, or vice versa).
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Returns the single instance of |this|. 207 // Returns the single instance of |this|.
204 static ExtensionsBrowserClient* Get(); 208 static ExtensionsBrowserClient* Get();
205 209
206 // Initialize the single instance. 210 // Initialize the single instance.
207 static void Set(ExtensionsBrowserClient* client); 211 static void Set(ExtensionsBrowserClient* client);
208 }; 212 };
209 213
210 } // namespace extensions 214 } // namespace extensions
211 215
212 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 216 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698