Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/browser/io_thread.h

Issue 1131513007: Reland (3rd try): Lazily initialize MessageLoop for faster thread startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary include Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/threading/thread_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « base/threading/thread_unittest.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698