| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual int PreCreateThreads() OVERRIDE; | 71 virtual int PreCreateThreads() OVERRIDE; |
| 72 virtual void PreMainMessageLoopRun() OVERRIDE; | 72 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 73 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 73 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 74 virtual void PostMainMessageLoopRun() OVERRIDE; | 74 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 75 virtual void PostDestroyThreads() OVERRIDE; | 75 virtual void PostDestroyThreads() OVERRIDE; |
| 76 | 76 |
| 77 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 77 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 78 // in order from PreMainMessageLoopRun(). See implementation for details. | 78 // in order from PreMainMessageLoopRun(). See implementation for details. |
| 79 virtual void PreProfileInit(); | 79 virtual void PreProfileInit(); |
| 80 virtual void PostProfileInit(); | 80 virtual void PostProfileInit(); |
| 81 virtual void PreInteractiveFirstRunInit(); |
| 82 virtual void PostInteractiveFirstRunInit(); |
| 81 virtual void PreBrowserStart(); | 83 virtual void PreBrowserStart(); |
| 82 virtual void PostBrowserStart(); | 84 virtual void PostBrowserStart(); |
| 83 | 85 |
| 84 #if !defined(OS_ANDROID) | 86 #if !defined(OS_ANDROID) |
| 85 // Runs the PageCycler; called if the switch kVisitURLs is present. | 87 // Runs the PageCycler; called if the switch kVisitURLs is present. |
| 86 virtual void RunPageCycler(); | 88 virtual void RunPageCycler(); |
| 87 #endif | 89 #endif |
| 88 | 90 |
| 89 // Override this in subclasses to initialize platform specific field trials. | 91 // Override this in subclasses to initialize platform specific field trials. |
| 90 virtual void SetupPlatformFieldTrials(); | 92 virtual void SetupPlatformFieldTrials(); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // Records the time from our process' startup to the present time in | 218 // Records the time from our process' startup to the present time in |
| 217 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 219 // the Startup.BrowserMessageLoopStartTime UMA histogram. |
| 218 void RecordBrowserStartupTime(); | 220 void RecordBrowserStartupTime(); |
| 219 | 221 |
| 220 // Records a time value to an UMA histogram in the context of the | 222 // Records a time value to an UMA histogram in the context of the |
| 221 // PreReadExperiment field-trial. This also reports to the appropriate | 223 // PreReadExperiment field-trial. This also reports to the appropriate |
| 222 // sub-histogram (_PreRead(Enabled|Disabled)). | 224 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 223 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 225 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 224 | 226 |
| 225 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 227 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |