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

Unified Diff: chrome/browser/profiles/profile.h

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix automation_util and thread issue. Created 9 years, 9 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/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 31159f46d5ba63a6d981d217bda89db424d802c5..8fcaea181013c496790883c1dc4041699454bf9a 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -346,6 +346,12 @@ class Profile {
// happen on the UI thread.
virtual URLRequestContextGetter* GetRequestContext() = 0;
+ // Returns the request context appropriate for the given app. If installed_app
willchan no longer on Chromium 2011/03/08 22:29:14 Do we really need two new member functions? Is thi
Charlie Reis 2011/03/09 00:10:55 Yes, I'd rather get some experience with this expe
+ // is null or installed_app->is_storage_isolated() returns false, this is
+ // equivalent to calling GetRequestContext().
+ virtual URLRequestContextGetter* GetRequestContextForPossibleApp(
+ const Extension* installed_app) = 0;
+
// Returns the request context for media resources asociated with this
// profile.
virtual URLRequestContextGetter* GetRequestContextForMedia() = 0;
@@ -354,6 +360,11 @@ class Profile {
// is only used for a separate cookie store currently.
virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0;
+ // Returns the request context used within an installed app that has
+ // requested isolated storage.
+ virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
+ const Extension* installed_app) = 0;
+
// Called by the ExtensionService that lives in this profile. Gives the
// profile a chance to react to the load event before the EXTENSION_LOADED
// notification has fired. The purpose for handling this event first is to

Powered by Google App Engine
This is Rietveld 408576698