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

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

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor to use ContentBrowserClient. 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_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 705ca3aedd434619ce023c9e49fa8ef990e8950f..25ac81ca1b846d3e312b283cde4f13addfec645a 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -57,12 +57,15 @@ class DatabaseTracker;
// accessor.
class ProfileIOData : public base::RefCountedThreadSafe<ProfileIOData> {
public:
- // These should only be called at most once each. Ownership is reversed they
- // get called, from ProfileIOData owning ChromeURLRequestContext to vice
+ // These should only be called at most once each. Ownership is reversed when
+ // they get called, from ProfileIOData owning ChromeURLRequestContext to vice
// versa.
scoped_refptr<ChromeURLRequestContext> GetMainRequestContext() const;
scoped_refptr<ChromeURLRequestContext> GetMediaRequestContext() const;
scoped_refptr<ChromeURLRequestContext> GetExtensionsRequestContext() const;
+ scoped_refptr<ChromeURLRequestContext> GetIsolatedAppRequestContext(
+ scoped_refptr<ChromeURLRequestContext> main_context,
+ std::string app_id) const;
Matt Perry 2011/03/15 00:40:56 const std::string&
Charlie Reis 2011/03/15 06:23:42 Done.
protected:
friend class base::RefCountedThreadSafe<ProfileIOData>;
@@ -139,10 +142,16 @@ class ProfileIOData : public base::RefCountedThreadSafe<ProfileIOData> {
// Virtual interface for subtypes to implement:
// --------------------------------------------
- // Does that actual initialization of the ProfileIOData subtype. Subtypes
+ // Does the actual initialization of the ProfileIOData subtype. Subtypes
// should use the static helper functions above to implement this.
virtual void LazyInitializeInternal() const = 0;
+ // Does an on-demand initialization of a RequestContext for the given
+ // isolated app.
+ virtual scoped_refptr<RequestContext> InitializeAppRequestContext(
+ scoped_refptr<ChromeURLRequestContext> main_context,
+ std::string app_id) const = 0;
Matt Perry 2011/03/15 00:40:56 here too, and below
Charlie Reis 2011/03/15 06:23:42 Done.
+
// These functions are used to transfer ownership of the lazily initialized
// context from ProfileIOData to the URLRequestContextGetter.
virtual scoped_refptr<ChromeURLRequestContext>
@@ -151,6 +160,10 @@ class ProfileIOData : public base::RefCountedThreadSafe<ProfileIOData> {
AcquireMediaRequestContext() const = 0;
virtual scoped_refptr<ChromeURLRequestContext>
AcquireExtensionsRequestContext() const = 0;
+ virtual scoped_refptr<ChromeURLRequestContext>
+ AcquireIsolatedAppRequestContext(
+ scoped_refptr<ChromeURLRequestContext> main_context,
+ std::string app_id) const = 0;
mutable bool initialized_;

Powered by Google App Engine
This is Rietveld 408576698