Index: chrome/browser/net/chrome_url_request_context.h |
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h |
index 76340771e566a08d83e952ca6f8de2848227a0a2..7c9473af188f31f92ebfa82e8e73f36fcfe252a6 100644 |
--- a/chrome/browser/net/chrome_url_request_context.h |
+++ b/chrome/browser/net/chrome_url_request_context.h |
@@ -17,6 +17,7 @@ |
#include "chrome/browser/prefs/pref_change_registrar.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/prerender/prerender_manager.h" |
+#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/extension_icon_set.h" |
#include "chrome/common/net/url_request_context_getter.h" |
#include "content/browser/appcache/chrome_appcache_service.h" |
@@ -48,6 +49,9 @@ class ChromeURLRequestContext : public net::URLRequestContext { |
public: |
ChromeURLRequestContext(); |
+ // Copies the state from |other| into this context. |
+ void CopyFrom(ChromeURLRequestContext* other); |
+ |
// Gets the path to the directory user scripts are stored in. |
FilePath user_script_dir_path() const { |
return user_script_dir_path_; |
@@ -222,6 +226,13 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter, |
static ChromeURLRequestContextGetter* CreateOriginalForExtensions( |
Profile* profile, const ProfileIOData* profile_io_data); |
+ // Create an instance for an original profile for an app with isolated |
+ // storage. This is expected to get called on UI thread. |
+ static ChromeURLRequestContextGetter* CreateOriginalForIsolatedApp( |
+ Profile* profile, |
+ const ProfileIOData* profile_io_data, |
+ const Extension* installed_app); |
+ |
// Create an instance for use with an OTR profile. This is expected to get |
// called on the UI thread. |
static ChromeURLRequestContextGetter* CreateOffTheRecord( |
@@ -232,6 +243,13 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter, |
static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions( |
Profile* profile, const ProfileIOData* profile_io_data); |
+ // Create an instance for an OTR profile for an app with isolated storage. |
+ // This is expected to get called on UI thread. |
+ static ChromeURLRequestContextGetter* CreateOffTheRecordForIsolatedApp( |
+ Profile* profile, |
+ const ProfileIOData* profile_io_data, |
+ const Extension* installed_app); |
+ |
// Clean up UI thread resources. This is expected to get called on the UI |
// thread before the instance is deleted on the IO thread. |
void CleanupOnUIThread(); |