OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 DISALLOW_COPY_AND_ASSIGN(Handle); | 78 DISALLOW_COPY_AND_ASSIGN(Handle); |
79 }; | 79 }; |
80 | 80 |
81 private: | 81 private: |
82 friend class base::RefCountedThreadSafe<OffTheRecordProfileIOData>; | 82 friend class base::RefCountedThreadSafe<OffTheRecordProfileIOData>; |
83 | 83 |
84 typedef base::hash_map<std::string, net::HttpTransactionFactory* > | 84 typedef base::hash_map<std::string, net::HttpTransactionFactory* > |
85 HttpTransactionFactoryMap; | 85 HttpTransactionFactoryMap; |
86 | 86 |
87 OffTheRecordProfileIOData(); | 87 OffTheRecordProfileIOData(); |
88 ~OffTheRecordProfileIOData(); | 88 virtual ~OffTheRecordProfileIOData(); |
89 | 89 |
90 virtual void LazyInitializeInternal(ProfileParams* profile_params) const; | 90 virtual void LazyInitializeInternal(ProfileParams* profile_params) const; |
91 virtual scoped_refptr<RequestContext> InitializeAppRequestContext( | 91 virtual scoped_refptr<RequestContext> InitializeAppRequestContext( |
92 scoped_refptr<ChromeURLRequestContext> main_context, | 92 scoped_refptr<ChromeURLRequestContext> main_context, |
93 const std::string& app_id) const; | 93 const std::string& app_id) const; |
94 virtual scoped_refptr<ChromeURLRequestContext> | 94 virtual scoped_refptr<ChromeURLRequestContext> |
95 AcquireMediaRequestContext() const; | 95 AcquireMediaRequestContext() const; |
96 virtual scoped_refptr<ChromeURLRequestContext> | 96 virtual scoped_refptr<ChromeURLRequestContext> |
97 AcquireIsolatedAppRequestContext( | 97 AcquireIsolatedAppRequestContext( |
98 scoped_refptr<ChromeURLRequestContext> main_context, | 98 scoped_refptr<ChromeURLRequestContext> main_context, |
99 const std::string& app_id) const; | 99 const std::string& app_id) const; |
100 | 100 |
101 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 101 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
102 | 102 |
103 // One HttpTransactionFactory per isolated app. | 103 // One HttpTransactionFactory per isolated app. |
104 mutable HttpTransactionFactoryMap app_http_factory_map_; | 104 mutable HttpTransactionFactoryMap app_http_factory_map_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileIOData); | 106 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileIOData); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ | 109 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IO_DATA_H_ |
OLD | NEW |