[email protected] | 34f73fb | 2010-03-24 20:50:34 | [diff] [blame^] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | 1152b7e | 2009-09-14 03:26:03 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_BROWSER_MAIN_H_ |
| 6 | #define CHROME_BROWSER_BROWSER_MAIN_H_ |
| 7 | |
| 8 | #include "build/build_config.h" |
| 9 | |
| 10 | struct MainFunctionParams; |
| 11 | class MetricsService; |
| 12 | |
[email protected] | 1152b7e | 2009-09-14 03:26:03 | [diff] [blame] | 13 | // Perform platform-specific work that needs to be done before the main |
| 14 | // message loop is created, initialized, and entered. |
| 15 | void WillInitializeMainMessageLoop(const MainFunctionParams& parameters); |
| 16 | |
| 17 | // Perform platform-specific work that needs to be done after the main event |
| 18 | // loop has ended. |
[email protected] | 3b6aa8b6 | 2009-09-15 21:36:11 | [diff] [blame] | 19 | void DidEndMainMessageLoop(); |
[email protected] | 1152b7e | 2009-09-14 03:26:03 | [diff] [blame] | 20 | |
| 21 | // Records the conditions that can prevent Breakpad from generating and |
| 22 | // sending crash reports. The presence of a Breakpad handler (after |
| 23 | // attempting to initialize crash reporting) and the presence of a debugger |
| 24 | // are registered with the UMA metrics service. |
| 25 | void RecordBreakpadStatusUMA(MetricsService* metrics); |
| 26 | |
[email protected] | 34f73fb | 2010-03-24 20:50:34 | [diff] [blame^] | 27 | // Displays a warning message if some minimum level of OS support is not |
| 28 | // present on the current platform. |
| 29 | void WarnAboutMinimumSystemRequirements(); |
[email protected] | 1152b7e | 2009-09-14 03:26:03 | [diff] [blame] | 30 | |
| 31 | #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |