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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 3c3826684793ee8d3d35e29240cef5349f227870..1c5c639a13a5aad06312f702dbafa18f6a4d1efa 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1073,12 +1073,13 @@ void ChromeContentBrowserClient::GetAdditionalWebUISchemes(
additional_schemes->push_back(chrome::kDomDistillerScheme);
}
-net::URLRequestContextGetter*
-ChromeContentBrowserClient::CreateRequestContext(
+net::URLRequestContextGetter* ChromeContentBrowserClient::CreateRequestContext(
content::BrowserContext* browser_context,
- content::ProtocolHandlerMap* protocol_handlers) {
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::ProtocolHandlerScopedVector protocol_interceptors) {
Profile* profile = Profile::FromBrowserContext(browser_context);
- return profile->CreateRequestContext(protocol_handlers);
+ return profile->CreateRequestContext(protocol_handlers,
+ protocol_interceptors.Pass());
}
net::URLRequestContextGetter*
@@ -1086,10 +1087,14 @@ ChromeContentBrowserClient::CreateRequestContextForStoragePartition(
content::BrowserContext* browser_context,
const base::FilePath& partition_path,
bool in_memory,
- content::ProtocolHandlerMap* protocol_handlers) {
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::ProtocolHandlerScopedVector protocol_interceptors) {
Profile* profile = Profile::FromBrowserContext(browser_context);
return profile->CreateRequestContextForStoragePartition(
- partition_path, in_memory, protocol_handlers);
+ partition_path,
+ in_memory,
+ protocol_handlers,
+ protocol_interceptors.Pass());
}
bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) {

Powered by Google App Engine
This is Rietveld 408576698