| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Returns the DevToolsNetworkControllerHandle attached to ProfileIOData. | 94 // Returns the DevToolsNetworkControllerHandle attached to ProfileIOData. |
| 95 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() const; | 95 DevToolsNetworkControllerHandle* GetDevToolsNetworkControllerHandle() const; |
| 96 | 96 |
| 97 // Deletes all network related data since |time|. It deletes transport | 97 // Deletes all network related data since |time|. It deletes transport |
| 98 // security state since |time| and also deletes HttpServerProperties data. | 98 // security state since |time| and also deletes HttpServerProperties data. |
| 99 // Works asynchronously, however if the |completion| callback is non-null, | 99 // Works asynchronously, however if the |completion| callback is non-null, |
| 100 // it will be posted on the UI thread once the removal process completes. | 100 // it will be posted on the UI thread once the removal process completes. |
| 101 void ClearNetworkingHistorySince(base::Time time, | 101 void ClearNetworkingHistorySince(base::Time time, |
| 102 const base::Closure& completion); | 102 const base::Closure& completion); |
| 103 | 103 |
| 104 // Called on IO thread thread when net parameters change. |
| 105 void UpdateNetParamsOnIOThread( |
| 106 net::HttpNetworkSession::ParamsUpdate params_update); |
| 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 |