| 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" |
| 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 "components/prefs/pref_store.h" | 15 #include "components/prefs/pref_store.h" |
| 16 #include "content/public/browser/cookie_store_factory.h" | 16 #include "content/public/browser/cookie_store_factory.h" |
| 17 | 17 |
| 18 class JsonPrefStore; | |
| 19 | |
| 20 namespace chrome_browser_net { | 18 namespace chrome_browser_net { |
| 21 class Predictor; | 19 class Predictor; |
| 22 } // namespace chrome_browser_net | 20 } // namespace chrome_browser_net |
| 23 | 21 |
| 24 namespace domain_reliability { | 22 namespace domain_reliability { |
| 25 class DomainReliabilityMonitor; | 23 class DomainReliabilityMonitor; |
| 26 } // namespace domain_reliability | 24 } // namespace domain_reliability |
| 27 | 25 |
| 28 namespace net { | 26 namespace net { |
| 29 class CookieStore; | 27 class CookieStore; |
| 30 class HttpServerPropertiesManager; | 28 class HttpServerPropertiesManager; |
| 31 class SdchOwner; | |
| 32 } // namespace net | 29 } // namespace net |
| 33 | 30 |
| 34 namespace storage { | 31 namespace storage { |
| 35 class SpecialStoragePolicy; | 32 class SpecialStoragePolicy; |
| 36 } // namespace storage | 33 } // namespace storage |
| 37 | 34 |
| 38 class ProfileImplIOData : public ProfileIOData { | 35 class ProfileImplIOData : public ProfileIOData { |
| 39 public: | 36 public: |
| 40 class Handle { | 37 class Handle { |
| 41 public: | 38 public: |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Deletes all network related data since |time|. It deletes transport | 193 // Deletes all network related data since |time|. It deletes transport |
| 197 // security state since |time| and also deletes HttpServerProperties data. | 194 // security state since |time| and also deletes HttpServerProperties data. |
| 198 // Works asynchronously, however if the |completion| callback is non-null, | 195 // Works asynchronously, however if the |completion| callback is non-null, |
| 199 // it will be posted on the UI thread once the removal process completes. | 196 // it will be posted on the UI thread once the removal process completes. |
| 200 void ClearNetworkingHistorySinceOnIOThread(base::Time time, | 197 void ClearNetworkingHistorySinceOnIOThread(base::Time time, |
| 201 const base::Closure& completion); | 198 const base::Closure& completion); |
| 202 | 199 |
| 203 // Lazy initialization params. | 200 // Lazy initialization params. |
| 204 mutable std::unique_ptr<LazyParams> lazy_params_; | 201 mutable std::unique_ptr<LazyParams> lazy_params_; |
| 205 | 202 |
| 206 mutable scoped_refptr<JsonPrefStore> network_json_store_; | |
| 207 | |
| 208 // Owned by URLRequestContextStorage, reference here to can be shut down on | 203 // Owned by URLRequestContextStorage, reference here to can be shut down on |
| 209 // the UI thread. | 204 // the UI thread. |
| 210 net::HttpServerPropertiesManager* http_server_properties_manager_; | 205 net::HttpServerPropertiesManager* http_server_properties_manager_; |
| 211 | 206 |
| 212 mutable std::unique_ptr<net::CookieStore> extensions_cookie_store_; | 207 mutable std::unique_ptr<net::CookieStore> extensions_cookie_store_; |
| 213 | 208 |
| 214 mutable std::unique_ptr<chrome_browser_net::Predictor> predictor_; | 209 mutable std::unique_ptr<chrome_browser_net::Predictor> predictor_; |
| 215 | 210 |
| 216 mutable std::unique_ptr<net::URLRequestContext> media_request_context_; | 211 mutable std::unique_ptr<net::URLRequestContext> media_request_context_; |
| 217 | 212 |
| 218 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_; | 213 mutable std::unique_ptr<net::URLRequestJobFactory> extensions_job_factory_; |
| 219 | 214 |
| 220 // Owned by ChromeNetworkDelegate (which is owned by |network_delegate_|). | 215 // Owned by ChromeNetworkDelegate (which is owned by |network_delegate_|). |
| 221 mutable domain_reliability::DomainReliabilityMonitor* | 216 mutable domain_reliability::DomainReliabilityMonitor* |
| 222 domain_reliability_monitor_; | 217 domain_reliability_monitor_; |
| 223 | 218 |
| 224 mutable std::unique_ptr<net::SdchOwner> sdch_policy_; | |
| 225 | |
| 226 // Parameters needed for isolated apps. | 219 // Parameters needed for isolated apps. |
| 227 base::FilePath profile_path_; | 220 base::FilePath profile_path_; |
| 228 int app_cache_max_size_; | 221 int app_cache_max_size_; |
| 229 int app_media_cache_max_size_; | 222 int app_media_cache_max_size_; |
| 230 | 223 |
| 231 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 224 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 232 }; | 225 }; |
| 233 | 226 |
| 234 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 227 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |