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 namespace chrome_browser_net { | 17 namespace chrome_browser_net { |
18 class Predictor; | 18 class Predictor; |
19 } // namespace chrome_browser_net | 19 } // namespace chrome_browser_net |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class CookieCryptoDelegate; | 22 class CookieCryptoDelegate; |
23 } // namespace content | 23 } // namespace content |
24 | 24 |
25 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 25 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
26 namespace data_reduction_proxy { | 26 namespace data_reduction_proxy { |
27 class DataReductionProxyParams; | 27 class DataReductionProxyParams; |
28 class DataReductionProxyUsageStats; | 28 class DataReductionProxyUsageStats; |
29 class DataReductionProxyAuthRequestHandler; | 29 class DataReductionProxyAuthRequestHandler; |
30 } | 30 class DataReductionProxyStatisticsPrefs; |
31 } // namespace data_reduction_proxy | |
31 #endif | 32 #endif |
32 | 33 |
33 namespace domain_reliability { | 34 namespace domain_reliability { |
34 class DomainReliabilityMonitor; | 35 class DomainReliabilityMonitor; |
35 } // namespace domain_reliability | 36 } // namespace domain_reliability |
36 | 37 |
37 namespace net { | 38 namespace net { |
38 class FtpTransactionFactory; | 39 class FtpTransactionFactory; |
39 class HttpServerProperties; | 40 class HttpServerProperties; |
40 class HttpServerPropertiesManager; | 41 class HttpServerPropertiesManager; |
(...skipping 29 matching lines...) Expand all Loading... | |
70 const base::FilePath& infinite_cache_path, | 71 const base::FilePath& infinite_cache_path, |
71 chrome_browser_net::Predictor* predictor, | 72 chrome_browser_net::Predictor* predictor, |
72 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, | 73 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, |
73 storage::SpecialStoragePolicy* special_storage_policy, | 74 storage::SpecialStoragePolicy* special_storage_policy, |
74 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 75 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
75 domain_reliability_monitor, | 76 domain_reliability_monitor, |
76 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, | 77 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, |
77 scoped_ptr<DataReductionProxyChromeConfigurator> | 78 scoped_ptr<DataReductionProxyChromeConfigurator> |
78 data_reduction_proxy_chrome_configurator, | 79 data_reduction_proxy_chrome_configurator, |
79 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 80 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
80 data_reduction_proxy_params); | 81 data_reduction_proxy_params, |
82 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | |
83 data_reduction_proxy_statistics_prefs); | |
81 | 84 |
82 // These Create*ContextGetter() functions are only exposed because the | 85 // These Create*ContextGetter() functions are only exposed because the |
83 // circular relationship between Profile, ProfileIOData::Handle, and the | 86 // circular relationship between Profile, ProfileIOData::Handle, and the |
84 // ChromeURLRequestContextGetter factories requires Profile be able to call | 87 // ChromeURLRequestContextGetter factories requires Profile be able to call |
85 // these functions. | 88 // these functions. |
86 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 89 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
87 content::ProtocolHandlerMap* protocol_handlers, | 90 content::ProtocolHandlerMap* protocol_handlers, |
88 content::URLRequestInterceptorScopedVector request_interceptors, | 91 content::URLRequestInterceptorScopedVector request_interceptors, |
89 PrefService* local_state, | 92 PrefService* local_state, |
90 IOThread* io_thread) const; | 93 IOThread* io_thread) const; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 254 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 255 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
253 data_reduction_proxy_params_; | 256 data_reduction_proxy_params_; |
254 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | 257 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> |
255 data_reduction_proxy_usage_stats_; | 258 data_reduction_proxy_usage_stats_; |
256 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; | 259 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; |
257 mutable scoped_ptr<DataReductionProxyChromeConfigurator> | 260 mutable scoped_ptr<DataReductionProxyChromeConfigurator> |
258 data_reduction_proxy_chrome_configurator_; | 261 data_reduction_proxy_chrome_configurator_; |
259 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 262 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
260 data_reduction_proxy_auth_request_handler_; | 263 data_reduction_proxy_auth_request_handler_; |
264 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | |
265 data_reduction_proxy_statistics_prefs_; | |
mmenke
2014/09/02 15:15:06
This is getting a bit excessive. Can we just wrap
| |
261 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | 266 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
262 | 267 |
263 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 268 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
264 }; | 269 }; |
265 | 270 |
266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 271 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |