Chromium Code Reviews| 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/net/net_pref_observer.h" | |
| 14 #include "chrome/browser/profiles/profile_io_data.h" | 15 #include "chrome/browser/profiles/profile_io_data.h" |
| 15 #include "components/prefs/pref_store.h" | 16 #include "components/prefs/pref_store.h" |
| 16 #include "content/public/browser/cookie_store_factory.h" | 17 #include "content/public/browser/cookie_store_factory.h" |
| 17 | 18 |
| 18 class JsonPrefStore; | 19 class JsonPrefStore; |
| 19 | 20 |
| 20 namespace chrome_browser_net { | 21 namespace chrome_browser_net { |
| 21 class Predictor; | 22 class Predictor; |
| 22 } // namespace chrome_browser_net | 23 } // namespace chrome_browser_net |
| 23 | 24 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // Returns the DevToolsNetworkControllerHandle attached to ProfileIOData. | 95 // Returns the DevToolsNetworkControllerHandle attached to ProfileIOData. |
| 95 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() const; | 96 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() const; |
| 96 | 97 |
| 97 // Deletes all network related data since |time|. It deletes transport | 98 // Deletes all network related data since |time|. It deletes transport |
| 98 // security state since |time| and also deletes HttpServerProperties data. | 99 // security state since |time| and also deletes HttpServerProperties data. |
| 99 // Works asynchronously, however if the |completion| callback is non-null, | 100 // Works asynchronously, however if the |completion| callback is non-null, |
| 100 // it will be posted on the UI thread once the removal process completes. | 101 // it will be posted on the UI thread once the removal process completes. |
| 101 void ClearNetworkingHistorySince(base::Time time, | 102 void ClearNetworkingHistorySince(base::Time time, |
| 102 const base::Closure& completion); | 103 const base::Closure& completion); |
| 103 | 104 |
| 105 // Called on UI thread thread when net parameters change | |
|
Bence
2016/12/26 18:47:56
Period.
pmarko
2017/01/02 10:33:55
Done.
| |
| 106 void UpdateNetParams(NetPrefObserver::NetParamsChange net_params_change); | |
| 107 | |
| 104 private: | 108 private: |
| 105 typedef std::map<StoragePartitionDescriptor, | 109 typedef std::map<StoragePartitionDescriptor, |
| 106 scoped_refptr<ChromeURLRequestContextGetter>, | 110 scoped_refptr<ChromeURLRequestContextGetter>, |
| 107 StoragePartitionDescriptorLess> | 111 StoragePartitionDescriptorLess> |
| 108 ChromeURLRequestContextGetterMap; | 112 ChromeURLRequestContextGetterMap; |
| 109 | 113 |
| 110 // Lazily initialize ProfileParams. We do this on the calls to | 114 // Lazily initialize ProfileParams. We do this on the calls to |
| 111 // Get*RequestContextGetter(), so we only initialize ProfileParams right | 115 // Get*RequestContextGetter(), so we only initialize ProfileParams right |
| 112 // before posting a task to the IO thread to start using them. This prevents | 116 // before posting a task to the IO thread to start using them. This prevents |
| 113 // objects that are supposed to be deleted on the IO thread, but are created | 117 // objects that are supposed to be deleted on the IO thread, but are created |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 | 235 |
| 232 // Parameters needed for isolated apps. | 236 // Parameters needed for isolated apps. |
| 233 base::FilePath profile_path_; | 237 base::FilePath profile_path_; |
| 234 int app_cache_max_size_; | 238 int app_cache_max_size_; |
| 235 int app_media_cache_max_size_; | 239 int app_media_cache_max_size_; |
| 236 | 240 |
| 237 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 241 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
| 238 }; | 242 }; |
| 239 | 243 |
| 240 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 244 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
| OLD | NEW |