Index: chrome/browser/profiles/profile.h |
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h |
index b6d6be393181d7f83dd793709f9e334bf6d91e49..64ea8f55220989a62a52c000fae3bf6f6acdc254 100644 |
--- a/chrome/browser/profiles/profile.h |
+++ b/chrome/browser/profiles/profile.h |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/net/pref_proxy_config_tracker.h" |
#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" |
#include "content/public/browser/browser_context.h" |
+#include "net/url_request/url_request_job_factory.h" |
class ChromeAppCacheService; |
class ChromeURLDataManager; |
@@ -227,11 +228,6 @@ class Profile : public content::BrowserContext { |
// is only used for a separate cookie store currently. |
virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
- // Returns the request context used within |partition_id|. |
- virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( |
- const FilePath& partition_path, |
- bool in_memory) = 0; |
- |
// Returns the SSLConfigService for this profile. |
virtual net::SSLConfigService* GetSSLConfigService() = 0; |
@@ -254,6 +250,30 @@ class Profile : public content::BrowserContext { |
// the user started chrome. |
virtual base::Time GetStartTime() const = 0; |
+ // 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( |
+ 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) = 0; |
+ |
+ // 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( |
+ 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) = 0; |
+ |
// Returns the last directory that was chosen for uploading or opening a file. |
virtual FilePath last_selected_directory() = 0; |
virtual void set_last_selected_directory(const FilePath& path) = 0; |