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

Unified Diff: content/browser/browser_main_loop.h

Issue 22691002: Allow overlapping sync and async startup requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow overlapping sync and async startup requests - fix code review Nits Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/browser_startup_controller.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.h
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index 83dbafd201a6133e2b2d24cbca1d79146c2c77ca..b3ec73c8490e23b1f5dbcaed03d3da80cc65173a 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -42,6 +42,7 @@ class BrowserThreadImpl;
class MediaStreamManager;
class ResourceDispatcherHostImpl;
class SpeechRecognitionManagerImpl;
+class StartupTaskRunner;
class SystemMessageWindowWin;
struct MainFunctionParams;
@@ -68,7 +69,10 @@ class CONTENT_EXPORT BrowserMainLoop {
void InitializeToolkit();
void MainMessageLoopStart();
- // Create the tasks we need to complete startup.
+ // Create and start running the tasks we need to complete startup. Note that
+ // this can be called more than once (currently only on Android) if we get a
+ // request for synchronous startup while the tasks created by asynchronous
+ // startup are still running.
void CreateStartupTasks();
// Perform the default message loop run logic.
@@ -141,6 +145,8 @@ class CONTENT_EXPORT BrowserMainLoop {
#elif defined(OS_MACOSX) && !defined(OS_IOS)
scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
#endif
+ // The startup task runner is created by CreateStartupTasks()
+ scoped_ptr<StartupTaskRunner> startup_task_runner_;
// Destroy parts_ before main_message_loop_ (required) and before other
// classes constructed in content (but after main_thread_).
« no previous file with comments | « content/browser/android/browser_startup_controller.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698