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

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

Issue 1011683002: Lazily initialize MessageLoop for faster thread startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Provide SystemURLRequestContextGetter with access to 247 // Provide SystemURLRequestContextGetter with access to
248 // InitSystemRequestContext(). 248 // InitSystemRequestContext().
249 friend class SystemURLRequestContextGetter; 249 friend class SystemURLRequestContextGetter;
250 250
251 friend class test::IOThreadPeer; 251 friend class test::IOThreadPeer;
252 252
253 // BrowserThreadDelegate implementation, runs on the IO thread. 253 // BrowserThreadDelegate implementation, runs on the IO thread.
254 // This handles initialization and destruction of state that must 254 // This handles initialization and destruction of state that must
255 // live on the IO thread. 255 // live on the IO thread.
256 void Init() override; 256 void Init() override;
257 void InitAsync() override;
258 void CleanUp() override; 257 void CleanUp() override;
259 258
260 // Initializes |params| based on the settings in |globals|. 259 // Initializes |params| based on the settings in |globals|.
261 static void InitializeNetworkSessionParamsFromGlobals( 260 static void InitializeNetworkSessionParamsFromGlobals(
262 const Globals& globals, 261 const Globals& globals,
263 net::HttpNetworkSession::Params* params); 262 net::HttpNetworkSession::Params* params);
264 263
265 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line); 264 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line);
266 265
267 // Sets up TCP FastOpen if enabled via field trials or via the command line. 266 // Sets up TCP FastOpen if enabled via field trials or via the command line.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 bool is_quic_allowed_by_policy_; 477 bool is_quic_allowed_by_policy_;
479 478
480 const base::TimeTicks creation_time_; 479 const base::TimeTicks creation_time_;
481 480
482 base::WeakPtrFactory<IOThread> weak_factory_; 481 base::WeakPtrFactory<IOThread> weak_factory_;
483 482
484 DISALLOW_COPY_AND_ASSIGN(IOThread); 483 DISALLOW_COPY_AND_ASSIGN(IOThread);
485 }; 484 };
486 485
487 #endif // CHROME_BROWSER_IO_THREAD_H_ 486 #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