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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // Records the time from our process' startup to the present time in | 222 // Records the time from our process' startup to the present time in |
222 // the UMA histogram |metric_name|. | 223 // the UMA histogram |metric_name|. |
223 void RecordBrowserStartupTime(); | 224 void RecordBrowserStartupTime(); |
224 | 225 |
225 // Records a time value to an UMA histogram in the context of the | 226 // Records a time value to an UMA histogram in the context of the |
226 // PreReadExperiment field-trial. This also reports to the appropriate | 227 // PreReadExperiment field-trial. This also reports to the appropriate |
227 // sub-histogram (_PreRead(Enabled|Disabled)). | 228 // sub-histogram (_PreRead(Enabled|Disabled)). |
228 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 229 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
229 | 230 |
230 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 231 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |