Index: android_webview/browser/aw_content_browser_client.cc |
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc |
index 03f631dcf4fa40a6b74247b9ca41f9db5abd5eae..8bd40a4ffa2954668c0fb2c57f931795e2737643 100644 |
--- a/android_webview/browser/aw_content_browser_client.cc |
+++ b/android_webview/browser/aw_content_browser_client.cc |
@@ -101,6 +101,49 @@ void AwContentBrowserClient::RenderProcessHostCreated( |
host->GetID(), chrome::kFileScheme); |
} |
+net::URLRequestContextGetter* |
+AwContentBrowserClient::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) { |
+ DCHECK(browser_context_.get() == browser_context); |
+ return browser_context_->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* |
+AwContentBrowserClient::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) { |
+ DCHECK(browser_context_.get() == browser_context); |
+ return browser_context_->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()); |
+} |
+ |
std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
const std::string& alias_name) { |
return alias_name; |