| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void ToolkitInitialized() OVERRIDE; | 65 virtual void ToolkitInitialized() OVERRIDE; |
| 66 virtual void PreMainMessageLoopStart() OVERRIDE; | 66 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 67 virtual void PostMainMessageLoopStart() OVERRIDE; | 67 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 68 virtual int PreCreateThreads() OVERRIDE; | 68 virtual int PreCreateThreads() OVERRIDE; |
| 69 virtual void PreMainMessageLoopRun() OVERRIDE; | 69 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 70 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 70 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 71 virtual void PostMainMessageLoopRun() OVERRIDE; | 71 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 72 virtual void PostDestroyThreads() OVERRIDE; | 72 virtual void PostDestroyThreads() OVERRIDE; |
| 73 | 73 |
| 74 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 74 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 75 // in order from PreMainMessageLoopStart(). See implementation for details. | 75 // in order from PreMainMessageLoopRun(). See implementation for details. |
| 76 virtual void PreProfileInit(); | 76 virtual void PreProfileInit(); |
| 77 virtual void PostProfileInit(); | 77 virtual void PostProfileInit(); |
| 78 virtual void PreBrowserStart(); | 78 virtual void PreBrowserStart(); |
| 79 virtual void PostBrowserStart(); | 79 virtual void PostBrowserStart(); |
| 80 | 80 |
| 81 // Runs the PageCycler; called if the switch kVisitURLs is present. |
| 82 virtual void RunPageCycler(); |
| 83 |
| 81 // Displays a warning message that we can't find any locale data files. | 84 // Displays a warning message that we can't find any locale data files. |
| 82 virtual void ShowMissingLocaleMessageBox() = 0; | 85 virtual void ShowMissingLocaleMessageBox() = 0; |
| 83 | 86 |
| 84 const content::MainFunctionParams& parameters() const { | 87 const content::MainFunctionParams& parameters() const { |
| 85 return parameters_; | 88 return parameters_; |
| 86 } | 89 } |
| 87 const CommandLine& parsed_command_line() const { | 90 const CommandLine& parsed_command_line() const { |
| 88 return parsed_command_line_; | 91 return parsed_command_line_; |
| 89 } | 92 } |
| 90 | 93 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // Records the time from our process' startup to the present time in | 239 // Records the time from our process' startup to the present time in |
| 237 // the UMA histogram |metric_name|. | 240 // the UMA histogram |metric_name|. |
| 238 void RecordBrowserStartupTime(); | 241 void RecordBrowserStartupTime(); |
| 239 | 242 |
| 240 // Records a time value to an UMA histogram in the context of the | 243 // Records a time value to an UMA histogram in the context of the |
| 241 // PreReadExperiment field-trial. This also reports to the appropriate | 244 // PreReadExperiment field-trial. This also reports to the appropriate |
| 242 // sub-histogram (_PreRead(Enabled|Disabled)). | 245 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 246 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 244 | 247 |
| 245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 248 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |