| Index: chrome/browser/profiles/off_the_record_profile_io_data.h
|
| diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.h b/chrome/browser/profiles/off_the_record_profile_io_data.h
|
| index 3a6edf5ad571cae957dceb8d007223c4478c3967..fbf16a5238b66f0eba5bb1063544ac57f4a38a9f 100644
|
| --- a/chrome/browser/profiles/off_the_record_profile_io_data.h
|
| +++ b/chrome/browser/profiles/off_the_record_profile_io_data.h
|
| @@ -8,12 +8,14 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/file_path.h"
|
| +#include "base/hash_tables.h"
|
| #include "base/ref_counted.h"
|
| #include "base/scoped_ptr.h"
|
| #include "chrome/browser/profiles/profile_io_data.h"
|
|
|
| class ChromeURLRequestContext;
|
| class ChromeURLRequestContextGetter;
|
| +class Extension;
|
| class IOThread;
|
| class Profile;
|
|
|
| @@ -40,8 +42,15 @@ class OffTheRecordProfileIOData : public ProfileIOData {
|
| GetMainRequestContextGetter() const;
|
| scoped_refptr<ChromeURLRequestContextGetter>
|
| GetExtensionsRequestContextGetter() const;
|
| + scoped_refptr<ChromeURLRequestContextGetter>
|
| + GetIsolatedAppRequestContextGetter(
|
| + const Extension* installed_app) const;
|
|
|
| private:
|
| + typedef base::hash_map<std::string,
|
| + scoped_refptr<ChromeURLRequestContextGetter> >
|
| + ChromeURLRequestContextGetterMap;
|
| +
|
| // Lazily initialize ProfileParams. We do this on the calls to
|
| // Get*RequestContextGetter(), so we only initialize ProfileParams right
|
| // before posting a task to the IO thread to start using them. This prevents
|
| @@ -59,6 +68,8 @@ class OffTheRecordProfileIOData : public ProfileIOData {
|
| main_request_context_getter_;
|
| mutable scoped_refptr<ChromeURLRequestContextGetter>
|
| extensions_request_context_getter_;
|
| + mutable ChromeURLRequestContextGetterMap
|
| + app_request_context_getter_map_;
|
| const scoped_refptr<OffTheRecordProfileIOData> io_data_;
|
|
|
| Profile* const profile_;
|
| @@ -84,12 +95,19 @@ class OffTheRecordProfileIOData : public ProfileIOData {
|
|
|
| // Lazily initializes ProfileIOData.
|
| virtual void LazyInitializeInternal() const;
|
| + virtual scoped_refptr<RequestContext> InitializeAppRequestContext(
|
| + scoped_refptr<ChromeURLRequestContext> main_context,
|
| + const Extension *installed_app) const;
|
| virtual scoped_refptr<ChromeURLRequestContext>
|
| AcquireMainRequestContext() const;
|
| virtual scoped_refptr<ChromeURLRequestContext>
|
| AcquireMediaRequestContext() const;
|
| virtual scoped_refptr<ChromeURLRequestContext>
|
| AcquireExtensionsRequestContext() const;
|
| + virtual scoped_refptr<ChromeURLRequestContext>
|
| + AcquireIsolatedAppRequestContext(
|
| + scoped_refptr<ChromeURLRequestContext> main_context,
|
| + const Extension* installed_app) const;
|
|
|
| // Lazy initialization params.
|
| mutable scoped_ptr<LazyParams> lazy_params_;
|
|
|