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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Provide SystemURLRequestContextGetter with access to | 248 // Provide SystemURLRequestContextGetter with access to |
249 // InitSystemRequestContext(). | 249 // InitSystemRequestContext(). |
250 friend class SystemURLRequestContextGetter; | 250 friend class SystemURLRequestContextGetter; |
251 | 251 |
252 friend class test::IOThreadPeer; | 252 friend class test::IOThreadPeer; |
253 | 253 |
254 // BrowserThreadDelegate implementation, runs on the IO thread. | 254 // BrowserThreadDelegate implementation, runs on the IO thread. |
255 // This handles initialization and destruction of state that must | 255 // This handles initialization and destruction of state that must |
256 // live on the IO thread. | 256 // live on the IO thread. |
257 void Init() override; | 257 void Init() override; |
| 258 void InitAsync() override; |
258 void CleanUp() override; | 259 void CleanUp() override; |
259 | 260 |
260 // Initializes |params| based on the settings in |globals|. | 261 // Initializes |params| based on the settings in |globals|. |
261 static void InitializeNetworkSessionParamsFromGlobals( | 262 static void InitializeNetworkSessionParamsFromGlobals( |
262 const Globals& globals, | 263 const Globals& globals, |
263 net::HttpNetworkSession::Params* params); | 264 net::HttpNetworkSession::Params* params); |
264 | 265 |
265 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line); | 266 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line); |
266 | 267 |
267 // Sets up TCP FastOpen if enabled via field trials or via the command line. | 268 // Sets up TCP FastOpen if enabled via field trials or via the command line. |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 bool is_quic_allowed_by_policy_; | 484 bool is_quic_allowed_by_policy_; |
484 | 485 |
485 const base::TimeTicks creation_time_; | 486 const base::TimeTicks creation_time_; |
486 | 487 |
487 base::WeakPtrFactory<IOThread> weak_factory_; | 488 base::WeakPtrFactory<IOThread> weak_factory_; |
488 | 489 |
489 DISALLOW_COPY_AND_ASSIGN(IOThread); | 490 DISALLOW_COPY_AND_ASSIGN(IOThread); |
490 }; | 491 }; |
491 | 492 |
492 #endif // CHROME_BROWSER_IO_THREAD_H_ | 493 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |