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

Unified Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.h

Issue 11883038: Move is_incognito bit out of ChromeURLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chrome_url_data_manager_backend.h
diff --git a/chrome/browser/ui/webui/chrome_url_data_manager_backend.h b/chrome/browser/ui/webui/chrome_url_data_manager_backend.h
index ac327748f7b5add7bc91e80f9f3d1b186ff1f992..80193e38aa835497c92cecc4852d76039a33303c 100644
--- a/chrome/browser/ui/webui/chrome_url_data_manager_backend.h
+++ b/chrome/browser/ui/webui/chrome_url_data_manager_backend.h
@@ -39,9 +39,11 @@ class ChromeURLDataManagerBackend {
ChromeURLDataManagerBackend();
~ChromeURLDataManagerBackend();
- // Invoked to create the protocol handler for chrome://.
+ // Invoked to create the protocol handler for chrome://. |is_incognito| should
+ // be set for incognito profiles.
static net::URLRequestJobFactory::ProtocolHandler* CreateProtocolHandler(
- ChromeURLDataManagerBackend* backend);
+ ChromeURLDataManagerBackend* backend,
+ bool is_incognito);
// Adds a DataSource to the collection of data sources.
void AddDataSource(URLDataSource* source);
@@ -93,8 +95,11 @@ class ChromeURLDataManagerBackend {
DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManagerBackend);
};
+// Creates protocol handler for chrome-devtools://. |is_incognito| should be
+// set for incognito profiles.
net::URLRequestJobFactory::ProtocolHandler*
CreateDevToolsProtocolHandler(ChromeURLDataManagerBackend* backend,
- net::NetworkDelegate* network_delegate);
+ net::NetworkDelegate* network_delegate,
+ bool is_incognito);
#endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_BACKEND_H_

Powered by Google App Engine
This is Rietveld 408576698