| 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 78e9939d38cc003068921a9791fd538180182f71..ed55104888806f79df61d362554edf6707798333 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -798,6 +798,53 @@ bool ChromeContentBrowserClient::ShouldUseProcessPerSite(
|
| return true;
|
| }
|
|
|
| +net::URLRequestContextGetter*
|
| +ChromeContentBrowserClient::CreateRequestContext(
|
| + content::BrowserContext* browser_context,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + blob_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + file_system_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + developer_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + chrome_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + chrome_devtools_protocol_handler) {
|
| + Profile* profile = Profile::FromBrowserContext(browser_context);
|
| + return profile->CreateRequestContext(blob_protocol_handler.Pass(),
|
| + file_system_protocol_handler.Pass(),
|
| + developer_protocol_handler.Pass(),
|
| + chrome_protocol_handler.Pass(),
|
| + chrome_devtools_protocol_handler.Pass());
|
| +}
|
| +
|
| +net::URLRequestContextGetter*
|
| +ChromeContentBrowserClient::CreateRequestContextForStoragePartition(
|
| + content::BrowserContext* browser_context,
|
| + const FilePath& partition_path,
|
| + bool in_memory,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + blob_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + file_system_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + developer_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + chrome_protocol_handler,
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| + chrome_devtools_protocol_handler) {
|
| + Profile* profile = Profile::FromBrowserContext(browser_context);
|
| + return profile->CreateRequestContextForStoragePartition(
|
| + partition_path,
|
| + in_memory,
|
| + blob_protocol_handler.Pass(),
|
| + file_system_protocol_handler.Pass(),
|
| + developer_protocol_handler.Pass(),
|
| + chrome_protocol_handler.Pass(),
|
| + chrome_devtools_protocol_handler.Pass());
|
| +}
|
| +
|
| bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) {
|
| return ProfileIOData::IsHandledURL(url);
|
| }
|
|
|