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