Chromium Code Reviews| 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 867dad5d8b964f8e963c2c1703c9fd8c535e9b8a..b980cd769291ec3c42404091bc98098c003cce36 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) |
| @@ -47,6 +49,7 @@ class SSLCertRequestInfo; |
| class SSLInfo; |
| class URLRequest; |
| class URLRequestContext; |
| +class URLRequestContextGetter; |
| class X509Certificate; |
| } |
| @@ -131,6 +134,32 @@ 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::Interceptor> |
| + developer_protocol_handler); |
| + |
| + // Creates the net::URLRequestContextGetter for a StoragePartition. Should |
| + // only be called once per ContentBrowserClient object. |
|
awong
2012/12/13 23:53:08
This isn't strictly true...it should only be calle
pauljensen
2012/12/14 16:16:20
Done.
|
| + // 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::Interceptor> |
| + developer_protocol_handler); |
| + |
| // Returns whether a specified URL is handled by the embedder's internal |
| // protocol handlers. |
| virtual bool IsHandledURL(const GURL& url); |