| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_BROWSER_MAIN_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 struct MainFunctionParams; | 10 struct MainFunctionParams; |
| 11 class MetricsService; | 11 class MetricsService; |
| 12 | 12 |
| 13 namespace Platform { | 13 namespace Platform { |
| 14 | 14 |
| 15 // Perform platform-specific work that needs to be done before the main | 15 // Perform platform-specific work that needs to be done before the main |
| 16 // message loop is created, initialized, and entered. | 16 // message loop is created, initialized, and entered. |
| 17 void WillInitializeMainMessageLoop(const MainFunctionParams& parameters); | 17 void WillInitializeMainMessageLoop(const MainFunctionParams& parameters); |
| 18 | 18 |
| 19 // Perform platform-specific work that needs to be done after the main event | 19 // Perform platform-specific work that needs to be done after the main event |
| 20 // loop has ended. | 20 // loop has ended. |
| 21 void WillTerminate(); | 21 void DidEndMainMessageLoop(); |
| 22 | 22 |
| 23 // Records the conditions that can prevent Breakpad from generating and | 23 // Records the conditions that can prevent Breakpad from generating and |
| 24 // sending crash reports. The presence of a Breakpad handler (after | 24 // sending crash reports. The presence of a Breakpad handler (after |
| 25 // attempting to initialize crash reporting) and the presence of a debugger | 25 // attempting to initialize crash reporting) and the presence of a debugger |
| 26 // are registered with the UMA metrics service. | 26 // are registered with the UMA metrics service. |
| 27 void RecordBreakpadStatusUMA(MetricsService* metrics); | 27 void RecordBreakpadStatusUMA(MetricsService* metrics); |
| 28 | 28 |
| 29 } // namespace Platform | 29 } // namespace Platform |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 31 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
| OLD | NEW |