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/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
13 #include "chrome/browser/net/chrome_url_request_context_getter.h" | 13 #include "chrome/browser/net/chrome_url_request_context_getter.h" |
14 #include "chrome/browser/profiles/profile_io_data.h" | 14 #include "chrome/browser/profiles/profile_io_data.h" |
15 #include "content/public/browser/cookie_store_factory.h" | 15 #include "content/public/browser/cookie_store_factory.h" |
16 | 16 |
| 17 class JsonPrefStore; |
| 18 |
17 namespace chrome_browser_net { | 19 namespace chrome_browser_net { |
18 class Predictor; | 20 class Predictor; |
19 } // namespace chrome_browser_net | 21 } // namespace chrome_browser_net |
20 | 22 |
21 namespace content { | 23 namespace content { |
22 class CookieCryptoDelegate; | 24 class CookieCryptoDelegate; |
23 } // namespace content | 25 } // namespace content |
24 | 26 |
25 namespace data_reduction_proxy { | 27 namespace data_reduction_proxy { |
26 class DataReductionProxyNetworkDelegate; | 28 class DataReductionProxyNetworkDelegate; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // it will be posted on the UI thread once the removal process completes. | 210 // it will be posted on the UI thread once the removal process completes. |
209 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 211 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
210 const base::Closure& completion); | 212 const base::Closure& completion); |
211 | 213 |
212 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyNetworkDelegate> | 214 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyNetworkDelegate> |
213 network_delegate_; | 215 network_delegate_; |
214 | 216 |
215 // Lazy initialization params. | 217 // Lazy initialization params. |
216 mutable scoped_ptr<LazyParams> lazy_params_; | 218 mutable scoped_ptr<LazyParams> lazy_params_; |
217 | 219 |
| 220 mutable scoped_refptr<JsonPrefStore> network_json_store_; |
| 221 |
218 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; | 222 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; |
219 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; | 223 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; |
220 | 224 |
221 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain | 225 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain |
222 // destruction ordering. | 226 // destruction ordering. |
223 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; | 227 mutable net::HttpServerPropertiesManager* http_server_properties_manager_; |
224 | 228 |
225 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 229 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
226 | 230 |
227 mutable scoped_ptr<net::URLRequestContext> media_request_context_; | 231 mutable scoped_ptr<net::URLRequestContext> media_request_context_; |
228 | 232 |
229 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | 233 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; |
230 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 234 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
231 | 235 |
232 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 236 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
233 domain_reliability_monitor_; | 237 domain_reliability_monitor_; |
234 | 238 |
235 mutable scoped_ptr<net::SdchManager> sdch_manager_; | 239 mutable scoped_ptr<net::SdchManager> sdch_manager_; |
236 mutable scoped_ptr<net::SdchOwner> sdch_policy_; | 240 mutable scoped_ptr<net::SdchOwner> sdch_policy_; |
237 | 241 |
238 // Parameters needed for isolated apps. | 242 // Parameters needed for isolated apps. |
239 base::FilePath profile_path_; | 243 base::FilePath profile_path_; |
240 int app_cache_max_size_; | 244 int app_cache_max_size_; |
241 int app_media_cache_max_size_; | 245 int app_media_cache_max_size_; |
242 | 246 |
243 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 247 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
244 }; | 248 }; |
245 | 249 |
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 250 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |