| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace domain_reliability { | 33 namespace domain_reliability { |
| 34 class DomainReliabilityMonitor; | 34 class DomainReliabilityMonitor; |
| 35 } // namespace domain_reliability | 35 } // namespace domain_reliability |
| 36 | 36 |
| 37 namespace net { | 37 namespace net { |
| 38 class FtpTransactionFactory; | 38 class FtpTransactionFactory; |
| 39 class HttpServerProperties; | 39 class HttpServerProperties; |
| 40 class HttpServerPropertiesManager; | 40 class HttpServerPropertiesManager; |
| 41 class HttpTransactionFactory; | 41 class HttpTransactionFactory; |
| 42 class ProxyConfig; |
| 42 class SDCHManager; | 43 class SDCHManager; |
| 43 } // namespace net | 44 } // namespace net |
| 44 | 45 |
| 45 namespace quota { | 46 namespace quota { |
| 46 class SpecialStoragePolicy; | 47 class SpecialStoragePolicy; |
| 47 } // namespace quota | 48 } // namespace quota |
| 48 | 49 |
| 50 class DataReductionProxyChromeConfigurator; |
| 51 |
| 49 class ProfileImplIOData : public ProfileIOData { | 52 class ProfileImplIOData : public ProfileIOData { |
| 50 public: | 53 public: |
| 51 class Handle { | 54 class Handle { |
| 52 public: | 55 public: |
| 53 explicit Handle(Profile* profile); | 56 explicit Handle(Profile* profile); |
| 54 ~Handle(); | 57 ~Handle(); |
| 55 | 58 |
| 56 // Init() must be called before ~Handle(). It records most of the | 59 // Init() must be called before ~Handle(). It records most of the |
| 57 // parameters needed to construct a ChromeURLRequestContextGetter. | 60 // parameters needed to construct a ChromeURLRequestContextGetter. |
| 58 void Init(const base::FilePath& cookie_path, | 61 void Init(const base::FilePath& cookie_path, |
| 59 const base::FilePath& channel_id_path, | 62 const base::FilePath& channel_id_path, |
| 60 const base::FilePath& cache_path, | 63 const base::FilePath& cache_path, |
| 61 int cache_max_size, | 64 int cache_max_size, |
| 62 const base::FilePath& media_cache_path, | 65 const base::FilePath& media_cache_path, |
| 63 int media_cache_max_size, | 66 int media_cache_max_size, |
| 64 const base::FilePath& extensions_cookie_path, | 67 const base::FilePath& extensions_cookie_path, |
| 65 const base::FilePath& profile_path, | 68 const base::FilePath& profile_path, |
| 66 const base::FilePath& infinite_cache_path, | 69 const base::FilePath& infinite_cache_path, |
| 67 chrome_browser_net::Predictor* predictor, | 70 chrome_browser_net::Predictor* predictor, |
| 68 content::CookieStoreConfig::SessionCookieMode | 71 content::CookieStoreConfig::SessionCookieMode |
| 69 session_cookie_mode, | 72 session_cookie_mode, |
| 70 quota::SpecialStoragePolicy* special_storage_policy, | 73 quota::SpecialStoragePolicy* special_storage_policy, |
| 71 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 74 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 72 domain_reliability_monitor, | 75 domain_reliability_monitor, |
| 73 const base::Callback<void(bool)>& | 76 const base::Callback<void(bool)>& |
| 74 data_reduction_proxy_unavailable, | 77 data_reduction_proxy_unavailable, |
| 78 scoped_ptr<DataReductionProxyChromeConfigurator> |
| 79 data_reduction_proxy_chrome_configurator, |
| 75 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 80 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 76 data_reduction_proxy_params); | 81 data_reduction_proxy_params); |
| 77 | 82 |
| 78 // These Create*ContextGetter() functions are only exposed because the | 83 // These Create*ContextGetter() functions are only exposed because the |
| 79 // circular relationship between Profile, ProfileIOData::Handle, and the | 84 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 80 // ChromeURLRequestContextGetter factories requires Profile be able to call | 85 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 81 // these functions. | 86 // these functions. |
| 82 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 87 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
| 83 content::ProtocolHandlerMap* protocol_handlers, | 88 content::ProtocolHandlerMap* protocol_handlers, |
| 84 content::URLRequestInterceptorScopedVector request_interceptors, | 89 content::URLRequestInterceptorScopedVector request_interceptors, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 base::FilePath profile_path_; | 247 base::FilePath profile_path_; |
| 243 int app_cache_max_size_; | 248 int app_cache_max_size_; |
| 244 int app_media_cache_max_size_; | 249 int app_media_cache_max_size_; |
| 245 | 250 |
| 246 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 251 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
| 247 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 248 data_reduction_proxy_params_; | 253 data_reduction_proxy_params_; |
| 249 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | 254 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> |
| 250 data_reduction_proxy_usage_stats_; | 255 data_reduction_proxy_usage_stats_; |
| 251 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; | 256 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; |
| 257 mutable scoped_ptr<DataReductionProxyChromeConfigurator> |
| 258 data_reduction_proxy_chrome_configurator_; |
| 252 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 259 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 253 data_reduction_proxy_auth_request_handler_; | 260 data_reduction_proxy_auth_request_handler_; |
| 254 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | 261 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
| 255 | 262 |
| 256 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 263 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 257 }; | 264 }; |
| 258 | 265 |
| 259 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |