Chromium Code Reviews| 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_; |