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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 250723002: content: Terminate early if the toolkit initialization fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Returns the current instance. This is used to get access to the getters 60 // Returns the current instance. This is used to get access to the getters
61 // that return objects which are owned by this class. 61 // that return objects which are owned by this class.
62 static BrowserMainLoop* GetInstance(); 62 static BrowserMainLoop* GetInstance();
63 63
64 explicit BrowserMainLoop(const MainFunctionParams& parameters); 64 explicit BrowserMainLoop(const MainFunctionParams& parameters);
65 virtual ~BrowserMainLoop(); 65 virtual ~BrowserMainLoop();
66 66
67 void Init(); 67 void Init();
68 68
69 void EarlyInitialization(); 69 void EarlyInitialization();
70 void InitializeToolkit(); 70 bool InitializeToolkit();
71 void MainMessageLoopStart(); 71 void MainMessageLoopStart();
72 72
73 // Create and start running the tasks we need to complete startup. Note that 73 // Create and start running the tasks we need to complete startup. Note that
74 // this can be called more than once (currently only on Android) if we get a 74 // this can be called more than once (currently only on Android) if we get a
75 // request for synchronous startup while the tasks created by asynchronous 75 // request for synchronous startup while the tasks created by asynchronous
76 // startup are still running. 76 // startup are still running.
77 void CreateStartupTasks(); 77 void CreateStartupTasks();
78 78
79 // Perform the default message loop run logic. 79 // Perform the default message loop run logic.
80 void RunMainMessageLoopParts(); 80 void RunMainMessageLoopParts();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; 185 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_;
186 186
187 bool is_tracing_startup_; 187 bool is_tracing_startup_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 189 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
190 }; 190 };
191 191
192 } // namespace content 192 } // namespace content
193 193
194 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 194 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | content/browser/browser_main_runner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698