| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // All of these parameters are intended to be read on the IO thread. | 154 // All of these parameters are intended to be read on the IO thread. |
| 155 base::FilePath cookie_path; | 155 base::FilePath cookie_path; |
| 156 base::FilePath channel_id_path; | 156 base::FilePath channel_id_path; |
| 157 base::FilePath cache_path; | 157 base::FilePath cache_path; |
| 158 int cache_max_size; | 158 int cache_max_size; |
| 159 base::FilePath media_cache_path; | 159 base::FilePath media_cache_path; |
| 160 int media_cache_max_size; | 160 int media_cache_max_size; |
| 161 base::FilePath extensions_cookie_path; | 161 base::FilePath extensions_cookie_path; |
| 162 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; | 162 content::CookieStoreConfig::SessionCookieMode session_cookie_mode; |
| 163 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; | 163 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy; |
| 164 std::unique_ptr<domain_reliability::DomainReliabilityMonitor> |
| 165 domain_reliability_monitor; |
| 164 }; | 166 }; |
| 165 | 167 |
| 166 ProfileImplIOData(); | 168 ProfileImplIOData(); |
| 167 ~ProfileImplIOData() override; | 169 ~ProfileImplIOData() override; |
| 168 | 170 |
| 169 void InitializeInternal( | 171 void InitializeInternal( |
| 170 std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate, | 172 std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
| 171 ProfileParams* profile_params, | 173 ProfileParams* profile_params, |
| 172 content::ProtocolHandlerMap* protocol_handlers, | 174 content::ProtocolHandlerMap* protocol_handlers, |
| 173 content::URLRequestInterceptorScopedVector request_interceptors) | 175 content::URLRequestInterceptorScopedVector request_interceptors) |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 mutable std::unique_ptr<net::CookieStore> main_cookie_store_; | 228 mutable std::unique_ptr<net::CookieStore> main_cookie_store_; |
| 227 mutable std::unique_ptr<net::CookieStore> extensions_cookie_store_; | 229 mutable std::unique_ptr<net::CookieStore> extensions_cookie_store_; |
| 228 | 230 |
| 229 mutable std::unique_ptr<chrome_browser_net::Predictor> predictor_; | 231 mutable std::unique_ptr<chrome_browser_net::Predictor> predictor_; |
| 230 | 232 |
| 231 mutable std::unique_ptr<net::URLRequestContext> media_request_context_; | 233 mutable std::unique_ptr<net::URLRequestContext> media_request_context_; |
| 232 | 234 |
| 233 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; | 235 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; |
| 234 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 236 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
| 235 | 237 |
| 236 mutable std::unique_ptr<domain_reliability::DomainReliabilityMonitor> | 238 // Owned by ChromeNetworkDelegate (which is owned by |network_delegate_|). |
| 239 mutable domain_reliability::DomainReliabilityMonitor* |
| 237 domain_reliability_monitor_; | 240 domain_reliability_monitor_; |
| 238 | 241 |
| 239 mutable std::unique_ptr<net::SdchManager> sdch_manager_; | 242 mutable std::unique_ptr<net::SdchManager> sdch_manager_; |
| 240 mutable std::unique_ptr<net::SdchOwner> sdch_policy_; | 243 mutable std::unique_ptr<net::SdchOwner> sdch_policy_; |
| 241 | 244 |
| 242 // Parameters needed for isolated apps. | 245 // Parameters needed for isolated apps. |
| 243 base::FilePath profile_path_; | 246 base::FilePath profile_path_; |
| 244 int app_cache_max_size_; | 247 int app_cache_max_size_; |
| 245 int app_media_cache_max_size_; | 248 int app_media_cache_max_size_; |
| 246 | 249 |
| 247 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 250 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 248 }; | 251 }; |
| 249 | 252 |
| 250 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 253 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |