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 ChromeSdchPolicy; | 17 class ChromeSdchPolicy; |
18 | 18 |
19 namespace chrome_browser_net { | 19 namespace chrome_browser_net { |
20 class Predictor; | 20 class Predictor; |
21 } // namespace chrome_browser_net | 21 } // namespace chrome_browser_net |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 class CookieCryptoDelegate; | 24 class CookieCryptoDelegate; |
25 } // namespace content | 25 } // namespace content |
26 | 26 |
27 namespace data_reduction_proxy { | 27 namespace data_reduction_proxy { |
28 class DataReductionProxyConfigurator; | 28 class DataReductionProxyConfigurator; |
29 class DataReductionProxyNetworkDelegate; | 29 class DataReductionProxyNetworkDelegate; |
| 30 class DataReductionProxyUIService; |
30 } // namespace data_reduction_proxy | 31 } // namespace data_reduction_proxy |
31 | 32 |
32 namespace domain_reliability { | 33 namespace domain_reliability { |
33 class DomainReliabilityMonitor; | 34 class DomainReliabilityMonitor; |
34 } // namespace domain_reliability | 35 } // namespace domain_reliability |
35 | 36 |
36 namespace net { | 37 namespace net { |
37 class FtpTransactionFactory; | 38 class FtpTransactionFactory; |
38 class HttpServerProperties; | 39 class HttpServerProperties; |
39 class HttpServerPropertiesManager; | 40 class HttpServerPropertiesManager; |
(...skipping 30 matching lines...) Expand all Loading... |
70 storage::SpecialStoragePolicy* special_storage_policy, | 71 storage::SpecialStoragePolicy* special_storage_policy, |
71 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 72 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
72 domain_reliability_monitor, | 73 domain_reliability_monitor, |
73 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, | 74 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, |
74 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> | 75 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator> |
75 data_reduction_proxy_configurator, | 76 data_reduction_proxy_configurator, |
76 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 77 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
77 data_reduction_proxy_params, | 78 data_reduction_proxy_params, |
78 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | 79 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> |
79 data_reduction_proxy_statistics_prefs, | 80 data_reduction_proxy_statistics_prefs, |
| 81 #if defined(OS_ANDROID) |
| 82 scoped_ptr<data_reduction_proxy::DataReductionProxyUIService> |
| 83 data_reduction_proxy_ui_service, |
| 84 #endif |
80 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | 85 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> |
81 data_reduction_proxy_event_store); | 86 data_reduction_proxy_event_store); |
82 | 87 |
83 // These Create*ContextGetter() functions are only exposed because the | 88 // These Create*ContextGetter() functions are only exposed because the |
84 // circular relationship between Profile, ProfileIOData::Handle, and the | 89 // circular relationship between Profile, ProfileIOData::Handle, and the |
85 // ChromeURLRequestContextGetter factories requires Profile be able to call | 90 // ChromeURLRequestContextGetter factories requires Profile be able to call |
86 // these functions. | 91 // these functions. |
87 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 92 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
88 content::ProtocolHandlerMap* protocol_handlers, | 93 content::ProtocolHandlerMap* protocol_handlers, |
89 content::URLRequestInterceptorScopedVector request_interceptors, | 94 content::URLRequestInterceptorScopedVector request_interceptors, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 257 |
253 // Parameters needed for isolated apps. | 258 // Parameters needed for isolated apps. |
254 base::FilePath profile_path_; | 259 base::FilePath profile_path_; |
255 int app_cache_max_size_; | 260 int app_cache_max_size_; |
256 int app_media_cache_max_size_; | 261 int app_media_cache_max_size_; |
257 | 262 |
258 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 263 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
259 }; | 264 }; |
260 | 265 |
261 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 266 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |