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_PROFILE_IMPL_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 int media_cache_max_size; | 114 int media_cache_max_size; |
115 FilePath extensions_cookie_path; | 115 FilePath extensions_cookie_path; |
116 }; | 116 }; |
117 | 117 |
118 typedef base::hash_map<std::string, net::HttpTransactionFactory* > | 118 typedef base::hash_map<std::string, net::HttpTransactionFactory* > |
119 HttpTransactionFactoryMap; | 119 HttpTransactionFactoryMap; |
120 | 120 |
121 ProfileImplIOData(); | 121 ProfileImplIOData(); |
122 virtual ~ProfileImplIOData(); | 122 virtual ~ProfileImplIOData(); |
123 | 123 |
124 virtual void LazyInitializeInternal(ProfileParams* profile_params) const; | 124 virtual void LazyInitializeInternal( |
| 125 ProfileParams* profile_params) const OVERRIDE; |
125 virtual scoped_refptr<ChromeURLRequestContext> InitializeAppRequestContext( | 126 virtual scoped_refptr<ChromeURLRequestContext> InitializeAppRequestContext( |
126 scoped_refptr<ChromeURLRequestContext> main_context, | 127 scoped_refptr<ChromeURLRequestContext> main_context, |
127 const std::string& app_id) const; | 128 const std::string& app_id) const OVERRIDE; |
128 virtual scoped_refptr<ChromeURLRequestContext> | 129 virtual scoped_refptr<ChromeURLRequestContext> |
129 AcquireMediaRequestContext() const; | 130 AcquireMediaRequestContext() const OVERRIDE; |
130 virtual scoped_refptr<ChromeURLRequestContext> | 131 virtual scoped_refptr<ChromeURLRequestContext> |
131 AcquireIsolatedAppRequestContext( | 132 AcquireIsolatedAppRequestContext( |
132 scoped_refptr<ChromeURLRequestContext> main_context, | 133 scoped_refptr<ChromeURLRequestContext> main_context, |
133 const std::string& app_id) const; | 134 const std::string& app_id) const OVERRIDE; |
134 | 135 |
135 // Lazy initialization params. | 136 // Lazy initialization params. |
136 mutable scoped_ptr<LazyParams> lazy_params_; | 137 mutable scoped_ptr<LazyParams> lazy_params_; |
137 | 138 |
138 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> | 139 mutable scoped_ptr<chrome_browser_net::HttpServerPropertiesManager> |
139 http_server_properties_manager_; | 140 http_server_properties_manager_; |
140 | 141 |
141 mutable scoped_refptr<ChromeURLRequestContext> media_request_context_; | 142 mutable scoped_refptr<ChromeURLRequestContext> media_request_context_; |
142 | 143 |
143 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 144 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
144 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; | 145 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; |
145 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 146 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
146 | 147 |
147 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 148 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
148 | 149 |
149 // Parameters needed for isolated apps. | 150 // Parameters needed for isolated apps. |
150 FilePath app_path_; | 151 FilePath app_path_; |
151 mutable bool clear_local_state_on_exit_; | 152 mutable bool clear_local_state_on_exit_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 154 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
154 }; | 155 }; |
155 | 156 |
156 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 157 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |