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, |
| 74 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 75 data_reduction_proxy_params); |
64 | 76 |
65 // These Create*ContextGetter() functions are only exposed because the | 77 // These Create*ContextGetter() functions are only exposed because the |
66 // circular relationship between Profile, ProfileIOData::Handle, and the | 78 // circular relationship between Profile, ProfileIOData::Handle, and the |
67 // ChromeURLRequestContextGetter factories requires Profile be able to call | 79 // ChromeURLRequestContextGetter factories requires Profile be able to call |
68 // these functions. | 80 // these functions. |
69 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 81 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
70 content::ProtocolHandlerMap* protocol_handlers, | 82 content::ProtocolHandlerMap* protocol_handlers, |
71 content::URLRequestInterceptorScopedVector request_interceptors, | 83 content::URLRequestInterceptorScopedVector request_interceptors, |
72 PrefService* local_state, | 84 PrefService* local_state, |
73 IOThread* io_thread) const; | 85 IOThread* io_thread) const; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 235 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
224 domain_reliability_monitor_; | 236 domain_reliability_monitor_; |
225 | 237 |
226 mutable scoped_ptr<net::SdchManager> sdch_manager_; | 238 mutable scoped_ptr<net::SdchManager> sdch_manager_; |
227 | 239 |
228 // Parameters needed for isolated apps. | 240 // Parameters needed for isolated apps. |
229 base::FilePath profile_path_; | 241 base::FilePath profile_path_; |
230 int app_cache_max_size_; | 242 int app_cache_max_size_; |
231 int app_media_cache_max_size_; | 243 int app_media_cache_max_size_; |
232 | 244 |
| 245 #if defined(SPDY_PROXY_AUTH_ORIGIN) |
| 246 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 247 data_reduction_proxy_params_; |
| 248 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> |
| 249 data_reduction_proxy_usage_stats_; |
| 250 mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_; |
| 251 mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 252 data_reduction_proxy_auth_request_handler_; |
| 253 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) |
| 254 |
233 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 255 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
234 }; | 256 }; |
235 | 257 |
236 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 258 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |