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 disables QUIC for HttpNetworkSessions owned by io_thread, and |
| 240 // to HttpNetworkSession::Params which are used for the creation of new |
| 241 // HttpNetworkSessions. Not that re-enabling Quic dynamically is not |
| 242 // supported for simplicity and requires a browser restart. |
| 243 void DisableQuic(); |
| 244 |
239 base::TimeTicks creation_time() const; | 245 base::TimeTicks creation_time() const; |
240 | 246 |
241 // Returns the callback for updating data use prefs. | 247 // Returns the callback for updating data use prefs. |
242 metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); | 248 metrics::UpdateUsagePrefCallbackType GetMetricsDataUseForwarder(); |
243 | 249 |
244 // Registers the |observer| for new STH notifications. | 250 // Registers the |observer| for new STH notifications. |
245 void RegisterSTHObserver(net::ct::STHObserver* observer); | 251 void RegisterSTHObserver(net::ct::STHObserver* observer); |
246 | 252 |
247 // Un-registers the |observer|. | 253 // Un-registers the |observer|. |
248 void UnregisterSTHObserver(net::ct::STHObserver* observer); | 254 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_; | 404 bool http_09_on_non_default_ports_enabled_; |
399 | 405 |
400 const base::TimeTicks creation_time_; | 406 const base::TimeTicks creation_time_; |
401 | 407 |
402 base::WeakPtrFactory<IOThread> weak_factory_; | 408 base::WeakPtrFactory<IOThread> weak_factory_; |
403 | 409 |
404 DISALLOW_COPY_AND_ASSIGN(IOThread); | 410 DISALLOW_COPY_AND_ASSIGN(IOThread); |
405 }; | 411 }; |
406 | 412 |
407 #endif // CHROME_BROWSER_IO_THREAD_H_ | 413 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |