| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // instantiate the appropriate subclass. | 73 // instantiate the appropriate subclass. |
| 74 static BrowserMainParts* CreateBrowserMainParts( | 74 static BrowserMainParts* CreateBrowserMainParts( |
| 75 const MainFunctionParams& parameters); | 75 const MainFunctionParams& parameters); |
| 76 | 76 |
| 77 virtual ~BrowserMainParts(); | 77 virtual ~BrowserMainParts(); |
| 78 | 78 |
| 79 // Parts to be called by |BrowserMain()|. | 79 // Parts to be called by |BrowserMain()|. |
| 80 void EarlyInitialization(); | 80 void EarlyInitialization(); |
| 81 void MainMessageLoopStart(); | 81 void MainMessageLoopStart(); |
| 82 | 82 |
| 83 void PostAboutFlagsConvertedToSwitches(); |
| 84 |
| 83 protected: | 85 protected: |
| 84 explicit BrowserMainParts(const MainFunctionParams& parameters); | 86 explicit BrowserMainParts(const MainFunctionParams& parameters); |
| 85 | 87 |
| 86 // Accessors for data members (below) ---------------------------------------- | 88 // Accessors for data members (below) ---------------------------------------- |
| 87 const MainFunctionParams& parameters() const { | 89 const MainFunctionParams& parameters() const { |
| 88 return parameters_; | 90 return parameters_; |
| 89 } | 91 } |
| 90 const CommandLine& parsed_command_line() const { | 92 const CommandLine& parsed_command_line() const { |
| 91 return parsed_command_line_; | 93 return parsed_command_line_; |
| 92 } | 94 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // sending crash reports. The presence of a Breakpad handler (after | 166 // sending crash reports. The presence of a Breakpad handler (after |
| 165 // attempting to initialize crash reporting) and the presence of a debugger | 167 // attempting to initialize crash reporting) and the presence of a debugger |
| 166 // are registered with the UMA metrics service. | 168 // are registered with the UMA metrics service. |
| 167 void RecordBreakpadStatusUMA(MetricsService* metrics); | 169 void RecordBreakpadStatusUMA(MetricsService* metrics); |
| 168 | 170 |
| 169 // Displays a warning message if some minimum level of OS support is not | 171 // Displays a warning message if some minimum level of OS support is not |
| 170 // present on the current platform. | 172 // present on the current platform. |
| 171 void WarnAboutMinimumSystemRequirements(); | 173 void WarnAboutMinimumSystemRequirements(); |
| 172 | 174 |
| 173 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 175 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
| OLD | NEW |