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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void PreMainMessageLoopStart() OVERRIDE; | 66 virtual void PreMainMessageLoopStart() OVERRIDE; |
67 virtual MessageLoop* GetMainMessageLoop() OVERRIDE; | 67 virtual MessageLoop* GetMainMessageLoop() OVERRIDE; |
68 virtual void PostMainMessageLoopStart() OVERRIDE; | 68 virtual void PostMainMessageLoopStart() OVERRIDE; |
69 virtual int PreCreateThreads() OVERRIDE; | 69 virtual int PreCreateThreads() OVERRIDE; |
70 virtual void PreMainMessageLoopRun() OVERRIDE; | 70 virtual void PreMainMessageLoopRun() OVERRIDE; |
71 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 71 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
72 virtual void PostMainMessageLoopRun() OVERRIDE; | 72 virtual void PostMainMessageLoopRun() OVERRIDE; |
73 virtual void PostDestroyThreads() OVERRIDE; | 73 virtual void PostDestroyThreads() OVERRIDE; |
74 | 74 |
75 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 75 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
76 // in order from PreMainMessageLoopStart(). See implementation for details. | 76 // in order from PreMainMessageLoopRun(). See implementation for details. |
77 virtual void PreProfileInit(); | 77 virtual void PreProfileInit(); |
78 virtual void PostProfileInit(); | 78 virtual void PostProfileInit(); |
79 virtual void PreBrowserStart(); | 79 virtual void PreBrowserStart(); |
80 virtual void PostBrowserStart(); | 80 virtual void PostBrowserStart(); |
81 | 81 |
| 82 // Runs the PageCycler; called if the switch kVisitURLs is present. |
| 83 virtual void RunPageCycler(); |
| 84 |
82 // Displays a warning message that we can't find any locale data files. | 85 // Displays a warning message that we can't find any locale data files. |
83 virtual void ShowMissingLocaleMessageBox() = 0; | 86 virtual void ShowMissingLocaleMessageBox() = 0; |
84 | 87 |
85 const content::MainFunctionParams& parameters() const { | 88 const content::MainFunctionParams& parameters() const { |
86 return parameters_; | 89 return parameters_; |
87 } | 90 } |
88 const CommandLine& parsed_command_line() const { | 91 const CommandLine& parsed_command_line() const { |
89 return parsed_command_line_; | 92 return parsed_command_line_; |
90 } | 93 } |
91 | 94 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Records the time from our process' startup to the present time in | 226 // Records the time from our process' startup to the present time in |
224 // the UMA histogram |metric_name|. | 227 // the UMA histogram |metric_name|. |
225 void RecordBrowserStartupTime(); | 228 void RecordBrowserStartupTime(); |
226 | 229 |
227 // Records a time value to an UMA histogram in the context of the | 230 // Records a time value to an UMA histogram in the context of the |
228 // PreReadExperiment field-trial. This also reports to the appropriate | 231 // PreReadExperiment field-trial. This also reports to the appropriate |
229 // sub-histogram (_PreRead(Enabled|Disabled)). | 232 // sub-histogram (_PreRead(Enabled|Disabled)). |
230 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 233 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
231 | 234 |
232 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 235 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |