Chromium Code Reviews| 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_CHROME_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_CHROME_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 // content::BrowserMainParts overrides. | 55 // content::BrowserMainParts overrides. |
| 56 virtual void PreEarlyInitialization() OVERRIDE; | 56 virtual void PreEarlyInitialization() OVERRIDE; |
| 57 virtual void PostEarlyInitialization() OVERRIDE; | 57 virtual void PostEarlyInitialization() OVERRIDE; |
| 58 virtual void ToolkitInitialized() OVERRIDE; | 58 virtual void ToolkitInitialized() OVERRIDE; |
| 59 virtual void PreMainMessageLoopStart() OVERRIDE; | 59 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 60 virtual void PostMainMessageLoopStart() OVERRIDE; | 60 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 61 virtual void PreMainMessageLoopRun() OVERRIDE; | 61 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 62 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 62 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 63 virtual void PostMainMessageLoopRun() OVERRIDE; | 63 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 64 | 64 |
| 65 // Additional stages for ChromeBrowserMainExtraParts. | |
| 66 virtual void PostBrowserProcessInit(); | |
| 67 virtual void PostProfileInitialized(); | |
| 68 virtual void PreBrowserStart(); | |
| 69 virtual void PostBrowserStart(); | |
|
satorux1
2011/11/23 23:51:53
BTW, will these stages be executed in this order?
stevenjb
2011/11/24 01:35:39
Yes. I will add comments to clarify this.
| |
| 70 | |
| 65 // Displays a warning message that we can't find any locale data files. | 71 // Displays a warning message that we can't find any locale data files. |
| 66 virtual void ShowMissingLocaleMessageBox() = 0; | 72 virtual void ShowMissingLocaleMessageBox() = 0; |
| 67 | 73 |
| 68 const content::MainFunctionParams& parameters() const { | 74 const content::MainFunctionParams& parameters() const { |
| 69 return parameters_; | 75 return parameters_; |
| 70 } | 76 } |
| 71 const CommandLine& parsed_command_line() const { | 77 const CommandLine& parsed_command_line() const { |
| 72 return parsed_command_line_; | 78 return parsed_command_line_; |
| 73 } | 79 } |
| 74 | 80 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 // Records the time from our process' startup to the present time in | 190 // Records the time from our process' startup to the present time in |
| 185 // the UMA histogram |metric_name|. | 191 // the UMA histogram |metric_name|. |
| 186 void RecordBrowserStartupTime(); | 192 void RecordBrowserStartupTime(); |
| 187 | 193 |
| 188 // Records a time value to an UMA histogram in the context of the | 194 // Records a time value to an UMA histogram in the context of the |
| 189 // PreReadExperiment field-trial. This also reports to the appropriate | 195 // PreReadExperiment field-trial. This also reports to the appropriate |
| 190 // sub-histogram (_PreRead(Enabled|Disabled)). | 196 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 191 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 197 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 192 | 198 |
| 193 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 199 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |