Chromium Code Reviews| 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/profiles/profile_io_data.h" | 13 #include "chrome/browser/profiles/profile_io_data.h" |
| 14 #include "content/public/browser/cookie_store_factory.h" | 14 #include "content/public/browser/cookie_store_factory.h" |
| 15 | 15 |
| 16 namespace chrome_browser_net { | 16 namespace chrome_browser_net { |
| 17 class Predictor; | 17 class Predictor; |
| 18 } // namespace chrome_browser_net | 18 } // namespace chrome_browser_net |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class CookieCryptoDelegate; | 21 class CookieCryptoDelegate; |
| 22 } // namespace content | 22 } // namespace content |
| 23 | 23 |
| 24 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 25 namespace data_reduction_proxy { | |
| 26 class DataReductionProxyParams; | |
| 27 class DataReductionProxyUsageStats; | |
| 28 class DataReductionProxyAuthRequestHandler; | |
| 29 } | |
| 30 #endif | |
| 31 | |
| 24 namespace domain_reliability { | 32 namespace domain_reliability { |
| 25 class DomainReliabilityMonitor; | 33 class DomainReliabilityMonitor; |
| 26 } // namespace domain_reliability | 34 } // namespace domain_reliability |
| 27 | 35 |
| 28 namespace net { | 36 namespace net { |
| 29 class FtpTransactionFactory; | 37 class FtpTransactionFactory; |
| 30 class HttpServerProperties; | 38 class HttpServerProperties; |
| 31 class HttpServerPropertiesManager; | 39 class HttpServerPropertiesManager; |
| 32 class HttpTransactionFactory; | 40 class HttpTransactionFactory; |
| 33 class SDCHManager; | 41 class SDCHManager; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 53 const base::FilePath& media_cache_path, | 61 const base::FilePath& media_cache_path, |
| 54 int media_cache_max_size, | 62 int media_cache_max_size, |
| 55 const base::FilePath& extensions_cookie_path, | 63 const base::FilePath& extensions_cookie_path, |
| 56 const base::FilePath& profile_path, | 64 const base::FilePath& profile_path, |
| 57 const base::FilePath& infinite_cache_path, | 65 const base::FilePath& infinite_cache_path, |
| 58 chrome_browser_net::Predictor* predictor, | 66 chrome_browser_net::Predictor* predictor, |
| 59 content::CookieStoreConfig::SessionCookieMode | 67 content::CookieStoreConfig::SessionCookieMode |
| 60 session_cookie_mode, | 68 session_cookie_mode, |
| 61 quota::SpecialStoragePolicy* special_storage_policy, | 69 quota::SpecialStoragePolicy* special_storage_policy, |
| 62 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 70 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 63 domain_reliability_monitor); | 71 domain_reliability_monitor, |
| 72 const base::Callback<void(bool)>& | |
| 73 data_reduction_proxy_unavailable); | |
| 64 | 74 |
| 65 // These Create*ContextGetter() functions are only exposed because the | 75 // These Create*ContextGetter() functions are only exposed because the |
| 66 // circular relationship between Profile, ProfileIOData::Handle, and the | 76 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 67 // ChromeURLRequestContextGetter factories requires Profile be able to call | 77 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 68 // these functions. | 78 // these functions. |
| 69 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 79 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
| 70 content::ProtocolHandlerMap* protocol_handlers, | 80 content::ProtocolHandlerMap* protocol_handlers, |
| 71 content::URLRequestInterceptorScopedVector request_interceptors, | 81 content::URLRequestInterceptorScopedVector request_interceptors, |
| 72 PrefService* local_state, | 82 PrefService* local_state, |
| 73 IOThread* io_thread) const; | 83 IOThread* io_thread) const; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 223 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 233 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 224 domain_reliability_monitor_; | 234 domain_reliability_monitor_; |
| 225 | 235 |
| 226 mutable scoped_ptr<net::SdchManager> sdch_manager_; | 236 mutable scoped_ptr<net::SdchManager> sdch_manager_; |
| 227 | 237 |
| 228 // Parameters needed for isolated apps. | 238 // Parameters needed for isolated apps. |
| 229 base::FilePath profile_path_; | 239 base::FilePath profile_path_; |
| 230 int app_cache_max_size_; | 240 int app_cache_max_size_; |
| 231 int app_media_cache_max_size_; | 241 int app_media_cache_max_size_; |
| 232 | 242 |
| 243 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
|
willchan no longer on Chromium
2014/07/28 15:45:23
I need to think further about the right layering h
bengr
2014/07/28 20:29:04
ok. Let me know what you conclude...
| |
| 244 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | |
| 245 data_reduction_proxy_params_; | |
| 246 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | |
| 247 data_reduction_proxy_usage_stats_; | |
| 248 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; | |
| 249 | |
| 250 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | |
| 251 data_reduction_proxy_auth_request_handler_; | |
| 252 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 253 | |
| 233 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 254 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 234 }; | 255 }; |
| 235 | 256 |
| 236 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 257 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |