| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const content::MainFunctionParams& parameters); | 56 const content::MainFunctionParams& parameters); |
| 57 | 57 |
| 58 // content::BrowserMainParts overrides. | 58 // content::BrowserMainParts overrides. |
| 59 // These are called in-order by content::BrowserMainLoop. | 59 // These are called in-order by content::BrowserMainLoop. |
| 60 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added | 60 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added |
| 61 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. | 61 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. |
| 62 virtual void PreEarlyInitialization() OVERRIDE; | 62 virtual void PreEarlyInitialization() OVERRIDE; |
| 63 virtual void PostEarlyInitialization() OVERRIDE; | 63 virtual void PostEarlyInitialization() OVERRIDE; |
| 64 virtual void ToolkitInitialized() OVERRIDE; | 64 virtual void ToolkitInitialized() OVERRIDE; |
| 65 virtual void PreMainMessageLoopStart() OVERRIDE; | 65 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 66 virtual MessageLoop* GetMainMessageLoop() OVERRIDE; |
| 66 virtual void PostMainMessageLoopStart() OVERRIDE; | 67 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 67 virtual int PreCreateThreads() OVERRIDE; | 68 virtual int PreCreateThreads() OVERRIDE; |
| 68 virtual void PreMainMessageLoopRun() OVERRIDE; | 69 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 69 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 70 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 70 virtual void PostMainMessageLoopRun() OVERRIDE; | 71 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 71 virtual void PostDestroyThreads() OVERRIDE; | 72 virtual void PostDestroyThreads() OVERRIDE; |
| 72 | 73 |
| 73 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 74 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 74 // in order from PreMainMessageLoopStart(). See implementation for details. | 75 // in order from PreMainMessageLoopStart(). See implementation for details. |
| 75 virtual void PreProfileInit(); | 76 virtual void PreProfileInit(); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // Records the time from our process' startup to the present time in | 219 // Records the time from our process' startup to the present time in |
| 219 // the UMA histogram |metric_name|. | 220 // the UMA histogram |metric_name|. |
| 220 void RecordBrowserStartupTime(); | 221 void RecordBrowserStartupTime(); |
| 221 | 222 |
| 222 // Records a time value to an UMA histogram in the context of the | 223 // Records a time value to an UMA histogram in the context of the |
| 223 // PreReadExperiment field-trial. This also reports to the appropriate | 224 // PreReadExperiment field-trial. This also reports to the appropriate |
| 224 // sub-histogram (_PreRead(Enabled|Disabled)). | 225 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 225 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 226 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 226 | 227 |
| 227 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 228 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |