Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5862)

Unified Diff: chrome/browser/net/chrome_url_request_context.h

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 93f0e373b96d3600d0d0ddc6c520dd49ecc84a37..ab2d630d67755d0c41ba8061cbd33c599b2c491c 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -245,6 +245,12 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter,
static ChromeURLRequestContextGetter* CreateOriginalForExtensions(
Profile* profile, const FilePath& cookie_store_path);
+ // 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 Extension* app,
+ const FilePath& cookie_store_path);
+
// Create an instance for use with an OTR profile. This is expected to get
// called on the UI thread.
static ChromeURLRequestContextGetter* CreateOffTheRecord(Profile* profile);
@@ -254,6 +260,11 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter,
static ChromeURLRequestContextGetter* CreateOffTheRecordForExtensions(
Profile* profile);
+ // 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 Extension* 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();

Powered by Google App Engine
This is Rietveld 408576698