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_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 // Clears the host cache. Intended to be used to prevent exposing recently | 230 // Clears the host cache. Intended to be used to prevent exposing recently |
231 // visited sites on about:net-internals/#dns and about:dns pages. Must be | 231 // visited sites on about:net-internals/#dns and about:dns pages. Must be |
232 // called on the IO thread. If |host_filter| is not null, only hosts matched | 232 // called on the IO thread. If |host_filter| is not null, only hosts matched |
233 // by it are deleted from the cache. | 233 // by it are deleted from the cache. |
234 void ClearHostCache( | 234 void ClearHostCache( |
235 const base::Callback<bool(const std::string&)>& host_filter); | 235 const base::Callback<bool(const std::string&)>& host_filter); |
236 | 236 |
237 const net::HttpNetworkSession::Params& NetworkSessionParams() const; | 237 const net::HttpNetworkSession::Params& NetworkSessionParams() const; |
238 | 238 |
| 239 // Dynamically update network session params. |
| 240 // Applies to the params_ object owned by io_thread and to the |
| 241 // HttpNetworkSession instances owned by io_thread, if they have been already |
| 242 // created. |
| 243 void UpdateNetworkSessionParams( |
| 244 net::HttpNetworkSession::ParamsUpdate params_update); |
| 245 |
239 base::TimeTicks creation_time() const; | 246 base::TimeTicks creation_time() const; |
240 | 247 |
241 // Returns the callback for updating data use prefs. | 248 // Returns the callback for updating data use prefs. |
242 metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); | 249 metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); |
243 | 250 |
244 // Registers the |observer| for new STH notifications. | 251 // Registers the |observer| for new STH notifications. |
245 void RegisterSTHObserver(net::ct::STHObserver* observer); | 252 void RegisterSTHObserver(net::ct::STHObserver* observer); |
246 | 253 |
247 // Un-registers the |observer|. | 254 // Un-registers the |observer|. |
248 void UnregisterSTHObserver(net::ct::STHObserver* observer); | 255 void UnregisterSTHObserver(net::ct::STHObserver* observer); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 bool http_09_on_non_default_ports_enabled_; | 405 bool http_09_on_non_default_ports_enabled_; |
399 | 406 |
400 const base::TimeTicks creation_time_; | 407 const base::TimeTicks creation_time_; |
401 | 408 |
402 base::WeakPtrFactory<IOThread> weak_factory_; | 409 base::WeakPtrFactory<IOThread> weak_factory_; |
403 | 410 |
404 DISALLOW_COPY_AND_ASSIGN(IOThread); | 411 DISALLOW_COPY_AND_ASSIGN(IOThread); |
405 }; | 412 }; |
406 | 413 |
407 #endif // CHROME_BROWSER_IO_THREAD_H_ | 414 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |