OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class PrefService; | 23 class PrefService; |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class SystemMonitor; | 26 class SystemMonitor; |
27 } | 27 } |
28 | 28 |
29 namespace net { | 29 namespace net { |
30 class NetworkChangeNotifier; | 30 class NetworkChangeNotifier; |
31 } | 31 } |
32 | 32 |
| 33 namespace chrome_browser { |
| 34 // For use by ShowMissingLocaleMessageBox. |
| 35 extern const char kMissingLocaleDataTitle[]; |
| 36 extern const char kMissingLocaleDataMessage[]; |
| 37 } |
| 38 |
33 // BrowserMainParts: | 39 // BrowserMainParts: |
34 // This class contains different "stages" to be executed in |BrowserMain()|, | 40 // This class contains different "stages" to be executed in |BrowserMain()|, |
35 // mostly initialization. This is made into a class rather than just functions | 41 // mostly initialization. This is made into a class rather than just functions |
36 // so each stage can create and maintain state. Each part is represented by a | 42 // so each stage can create and maintain state. Each part is represented by a |
37 // single method (e.g., "EarlyInitialization()"), which does the following: | 43 // single method (e.g., "EarlyInitialization()"), which does the following: |
38 // - calls a method (e.g., "PreEarlyInitialization()") which individual | 44 // - calls a method (e.g., "PreEarlyInitialization()") which individual |
39 // platforms can override to provide platform-specific code which is to be | 45 // platforms can override to provide platform-specific code which is to be |
40 // executed before the common code; | 46 // executed before the common code; |
41 // - calls various methods for things common to all platforms (for that given | 47 // - calls various methods for things common to all platforms (for that given |
42 // stage); and | 48 // stage); and |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Records the conditions that can prevent Breakpad from generating and | 200 // Records the conditions that can prevent Breakpad from generating and |
195 // sending crash reports. The presence of a Breakpad handler (after | 201 // sending crash reports. The presence of a Breakpad handler (after |
196 // attempting to initialize crash reporting) and the presence of a debugger | 202 // attempting to initialize crash reporting) and the presence of a debugger |
197 // are registered with the UMA metrics service. | 203 // are registered with the UMA metrics service. |
198 void RecordBreakpadStatusUMA(MetricsService* metrics); | 204 void RecordBreakpadStatusUMA(MetricsService* metrics); |
199 | 205 |
200 // Displays a warning message if some minimum level of OS support is not | 206 // Displays a warning message if some minimum level of OS support is not |
201 // present on the current platform. | 207 // present on the current platform. |
202 void WarnAboutMinimumSystemRequirements(); | 208 void WarnAboutMinimumSystemRequirements(); |
203 | 209 |
| 210 // Displays a warning message that we can't find any locale data files. |
| 211 void ShowMissingLocaleMessageBox(); |
| 212 |
204 // Records the time from our process' startup to the present time in | 213 // Records the time from our process' startup to the present time in |
205 // the UMA histogram |metric_name|. | 214 // the UMA histogram |metric_name|. |
206 void RecordBrowserStartupTime(); | 215 void RecordBrowserStartupTime(); |
207 | 216 |
208 // Records a Startup category value to an UMA histogram in the context of the | 217 // Records a Startup category value to an UMA histogram in the context of the |
209 // PreReadExperiment field-trial. This will also report to the appropriate | 218 // PreReadExperiment field-trial. This will also report to the appropriate |
210 // Startup.HistogramName_PreRead(Enabled|Disabled) histogram as appropriate. | 219 // Startup.HistogramName_PreRead(Enabled|Disabled) histogram as appropriate. |
211 // This is only called from OS_WIN specific code, so the implementation is | 220 // This is only called from OS_WIN specific code, so the implementation is |
212 // in browser_main_win.cc. This is a Windows specific experiment. | 221 // in browser_main_win.cc. This is a Windows specific experiment. |
213 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 222 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
214 | 223 |
215 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 224 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
OLD | NEW |