| Index: content/public/browser/content_browser_client.h
|
| diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
| index b332073a9cb9cbead5b6cf0e2e94ce0c75d983e1..0e1ed14392f9335698a480fc5a00ce6201c98612 100644
|
| --- a/content/public/browser/content_browser_client.h
|
| +++ b/content/public/browser/content_browser_client.h
|
| @@ -10,12 +10,14 @@
|
| #include <vector>
|
|
|
| #include "base/callback_forward.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "content/public/browser/file_descriptor_info.h"
|
| #include "content/public/common/socket_permission_request.h"
|
| #include "content/public/common/content_client.h"
|
| #include "content/public/common/window_container_type.h"
|
| #include "net/base/mime_util.h"
|
| #include "net/cookies/canonical_cookie.h"
|
| +#include "net/url_request/url_request_job_factory.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
|
|
|
| #if defined(OS_POSIX) && !defined(OS_MACOSX)
|
| @@ -49,6 +51,7 @@ class SSLCertRequestInfo;
|
| class SSLInfo;
|
| class URLRequest;
|
| class URLRequestContext;
|
| +class URLRequestContextGetter;
|
| class X509Certificate;
|
| }
|
|
|
| @@ -135,6 +138,40 @@ class CONTENT_EXPORT ContentBrowserClient {
|
| virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
|
| const GURL& effective_url);
|
|
|
| + // Creates the main net::URLRequestContextGetter. Should only be called once
|
| + // per ContentBrowserClient object.
|
| + // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
|
| + virtual net::URLRequestContextGetter* 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);
|
| +
|
| + // Creates the net::URLRequestContextGetter for a StoragePartition. Should
|
| + // only be called once per partition_path per ContentBrowserClient object.
|
| + // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
|
| + virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
|
| + 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);
|
| +
|
| // Returns whether a specified URL is handled by the embedder's internal
|
| // protocol handlers.
|
| virtual bool IsHandledURL(const GURL& url);
|
|
|