| Index: content/public/browser/content_browser_client.cc
|
| diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
|
| index 00b62a7419672f20b43fd239dbac08df1a8cb6f6..cf6a9739af1109193936757395056545646d4990 100644
|
| --- a/content/public/browser/content_browser_client.cc
|
| +++ b/content/public/browser/content_browser_client.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/files/file_path.h"
|
| #include "googleurl/src/gurl.h"
|
| +#include "net/url_request/url_request_job_factory_impl.h"
|
| #include "ui/gfx/image/image_skia.h"
|
|
|
| namespace content {
|
| @@ -36,18 +37,30 @@ bool ContentBrowserClient::ShouldUseProcessPerSite(
|
| return false;
|
| }
|
|
|
| +std::vector<std::string> ContentBrowserClient::GetAdditionalWebUISchemes() {
|
| + return std::vector<std::string>();
|
| +}
|
| +
|
| +// static
|
| +void ContentBrowserClient::InstallProtocolHandlers(
|
| + net::URLRequestJobFactoryImpl* job_factory,
|
| + content::ProtocolHandlerMap* protocol_handlers) {
|
| + for (content::ProtocolHandlerMap::iterator it =
|
| + protocol_handlers->begin();
|
| + it != protocol_handlers->end();
|
| + ++it) {
|
| + bool set_protocol = job_factory->SetProtocolHandler(
|
| + it->first, it->second.release());
|
| + DCHECK(set_protocol);
|
| + }
|
| + protocol_handlers->clear();
|
| +}
|
| +
|
| net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext(
|
| 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) {
|
| + ProtocolHandlerMap* protocol_handlers) {
|
| return NULL;
|
| }
|
|
|
| @@ -57,15 +70,8 @@ ContentBrowserClient::CreateRequestContextForStoragePartition(
|
| const base::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) {
|
| + ProtocolHandlerMap* protocol_handlers) {
|
| return NULL;
|
| }
|
|
|
|
|