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

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, 8 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
« no previous file with comments | « no previous file | content/browser/browser_main_loop.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 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 // Initializes the toolkit. Returns whether the toolkit initialization was
71 // successful or not.
72 bool InitializeToolkit();
71 void MainMessageLoopStart(); 73 void MainMessageLoopStart();
72 74
73 // Create and start running the tasks we need to complete startup. Note that 75 // 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 76 // 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 77 // request for synchronous startup while the tasks created by asynchronous
76 // startup are still running. 78 // startup are still running.
77 void CreateStartupTasks(); 79 void CreateStartupTasks();
78 80
79 // Perform the default message loop run logic. 81 // Perform the default message loop run logic.
80 void RunMainMessageLoopParts(); 82 void RunMainMessageLoopParts();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; 187 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_;
186 188
187 bool is_tracing_startup_; 189 bool is_tracing_startup_;
188 190
189 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 191 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
190 }; 192 };
191 193
192 } // namespace content 194 } // namespace content
193 195
194 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 196 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698