OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/profiles/profile_io_data.h" | 12 #include "chrome/browser/profiles/profile_io_data.h" |
13 | 13 |
14 namespace chrome_browser_net { | 14 namespace chrome_browser_net { |
| 15 class HttpServerPropertiesManager; |
15 class Predictor; | 16 class Predictor; |
16 } // namespace chrome_browser_net | 17 } // namespace chrome_browser_net |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 class HttpServerProperties; | 20 class HttpServerProperties; |
20 class HttpTransactionFactory; | 21 class HttpTransactionFactory; |
21 } // namespace net | 22 } // namespace net |
22 | 23 |
23 namespace quota { | 24 namespace quota { |
24 class SpecialStoragePolicy; | 25 class SpecialStoragePolicy; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // it will be posted on the UI thread once the removal process completes. | 185 // it will be posted on the UI thread once the removal process completes. |
185 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 186 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
186 const base::Closure& completion); | 187 const base::Closure& completion); |
187 | 188 |
188 // Lazy initialization params. | 189 // Lazy initialization params. |
189 mutable scoped_ptr<LazyParams> lazy_params_; | 190 mutable scoped_ptr<LazyParams> lazy_params_; |
190 | 191 |
191 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 192 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
192 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 193 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
193 | 194 |
| 195 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain |
| 196 // destruction ordering. |
| 197 mutable chrome_browser_net::HttpServerPropertiesManager* |
| 198 http_server_properties_manager_; |
| 199 |
194 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 200 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
195 | 201 |
196 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; | 202 mutable scoped_ptr<ChromeURLRequestContext> media_request_context_; |
197 | 203 |
198 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | 204 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; |
199 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 205 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
200 | 206 |
201 // Parameters needed for isolated apps. | 207 // Parameters needed for isolated apps. |
202 FilePath profile_path_; | 208 FilePath profile_path_; |
203 int app_cache_max_size_; | 209 int app_cache_max_size_; |
204 int app_media_cache_max_size_; | 210 int app_media_cache_max_size_; |
205 | 211 |
206 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 212 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
207 }; | 213 }; |
208 | 214 |
209 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 215 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |