| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const base::FilePath& media_cache_path, | 62 const base::FilePath& media_cache_path, |
| 63 int media_cache_max_size, | 63 int media_cache_max_size, |
| 64 const base::FilePath& extensions_cookie_path, | 64 const base::FilePath& extensions_cookie_path, |
| 65 const base::FilePath& profile_path, | 65 const base::FilePath& profile_path, |
| 66 const base::FilePath& infinite_cache_path, | 66 const base::FilePath& infinite_cache_path, |
| 67 chrome_browser_net::Predictor* predictor, | 67 chrome_browser_net::Predictor* predictor, |
| 68 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, | 68 content::CookieStoreConfig::SessionCookieMode session_cookie_mode, |
| 69 storage::SpecialStoragePolicy* special_storage_policy, | 69 storage::SpecialStoragePolicy* special_storage_policy, |
| 70 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 70 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 71 domain_reliability_monitor, | 71 domain_reliability_monitor, |
| 72 const base::Callback<void(bool)>& data_reduction_proxy_unavailable, | 72 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 73 scoped_ptr<DataReductionProxyChromeConfigurator> | 73 data_reduction_proxy_io_data); |
| 74 data_reduction_proxy_chrome_configurator, | |
| 75 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | |
| 76 data_reduction_proxy_params, | |
| 77 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs> | |
| 78 data_reduction_proxy_statistics_prefs, | |
| 79 scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore> | |
| 80 data_reduction_proxy_event_store); | |
| 81 | 74 |
| 82 // These Create*ContextGetter() functions are only exposed because the | 75 // These Create*ContextGetter() functions are only exposed because the |
| 83 // circular relationship between Profile, ProfileIOData::Handle, and the | 76 // circular relationship between Profile, ProfileIOData::Handle, and the |
| 84 // ChromeURLRequestContextGetter factories requires Profile be able to call | 77 // ChromeURLRequestContextGetter factories requires Profile be able to call |
| 85 // these functions. | 78 // these functions. |
| 86 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( | 79 scoped_refptr<ChromeURLRequestContextGetter> CreateMainRequestContextGetter( |
| 87 content::ProtocolHandlerMap* protocol_handlers, | 80 content::ProtocolHandlerMap* protocol_handlers, |
| 88 content::URLRequestInterceptorScopedVector request_interceptors, | 81 content::URLRequestInterceptorScopedVector request_interceptors, |
| 89 PrefService* local_state, | 82 PrefService* local_state, |
| 90 IOThread* io_thread) const; | 83 IOThread* io_thread) const; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 isolated_media_request_context_getter_map_; | 143 isolated_media_request_context_getter_map_; |
| 151 ProfileImplIOData* const io_data_; | 144 ProfileImplIOData* const io_data_; |
| 152 | 145 |
| 153 Profile* const profile_; | 146 Profile* const profile_; |
| 154 | 147 |
| 155 mutable bool initialized_; | 148 mutable bool initialized_; |
| 156 | 149 |
| 157 DISALLOW_COPY_AND_ASSIGN(Handle); | 150 DISALLOW_COPY_AND_ASSIGN(Handle); |
| 158 }; | 151 }; |
| 159 | 152 |
| 160 bool IsDataReductionProxyEnabled() const override; | |
| 161 | |
| 162 private: | 153 private: |
| 163 friend class base::RefCountedThreadSafe<ProfileImplIOData>; | 154 friend class base::RefCountedThreadSafe<ProfileImplIOData>; |
| 164 | 155 |
| 165 struct LazyParams { | 156 struct LazyParams { |
| 166 LazyParams(); | 157 LazyParams(); |
| 167 ~LazyParams(); | 158 ~LazyParams(); |
| 168 | 159 |
| 169 // All of these parameters are intended to be read on the IO thread. | 160 // All of these parameters are intended to be read on the IO thread. |
| 170 base::FilePath cookie_path; | 161 base::FilePath cookie_path; |
| 171 base::FilePath channel_id_path; | 162 base::FilePath channel_id_path; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 231 |
| 241 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; | 232 mutable scoped_ptr<net::URLRequestJobFactory> main_job_factory_; |
| 242 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 233 mutable scoped_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
| 243 | 234 |
| 244 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 235 mutable scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 245 domain_reliability_monitor_; | 236 domain_reliability_monitor_; |
| 246 | 237 |
| 247 mutable scoped_ptr<net::SdchManager> sdch_manager_; | 238 mutable scoped_ptr<net::SdchManager> sdch_manager_; |
| 248 mutable scoped_ptr<ChromeSdchPolicy> sdch_policy_; | 239 mutable scoped_ptr<ChromeSdchPolicy> sdch_policy_; |
| 249 | 240 |
| 250 mutable BooleanPrefMember data_reduction_proxy_enabled_; | |
| 251 | |
| 252 // Parameters needed for isolated apps. | 241 // Parameters needed for isolated apps. |
| 253 base::FilePath profile_path_; | 242 base::FilePath profile_path_; |
| 254 int app_cache_max_size_; | 243 int app_cache_max_size_; |
| 255 int app_media_cache_max_size_; | 244 int app_media_cache_max_size_; |
| 256 | 245 |
| 257 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 246 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 258 }; | 247 }; |
| 259 | 248 |
| 260 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 249 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |