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

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: Remove unneeded include 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 58b1cf2b7deb9556c3646af9ea6edd522c6f5ddd..caa545c6504ca598ab348baf159d2fb5e8f4e33a 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(URLDataSourceImpl* 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_
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698