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; | |
67 virtual void PostMainMessageLoopStart() OVERRIDE; | 66 virtual void PostMainMessageLoopStart() OVERRIDE; |
68 virtual int PreCreateThreads() OVERRIDE; | 67 virtual int PreCreateThreads() OVERRIDE; |
69 virtual void PreMainMessageLoopRun() OVERRIDE; | 68 virtual void PreMainMessageLoopRun() OVERRIDE; |
70 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 69 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
71 virtual void PostMainMessageLoopRun() OVERRIDE; | 70 virtual void PostMainMessageLoopRun() OVERRIDE; |
72 virtual void PostDestroyThreads() OVERRIDE; | 71 virtual void PostDestroyThreads() OVERRIDE; |
73 | 72 |
74 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 73 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
75 // in order from PreMainMessageLoopStart(). See implementation for details. | 74 // in order from PreMainMessageLoopStart(). See implementation for details. |
76 virtual void PreProfileInit(); | 75 virtual void PreProfileInit(); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Records the time from our process' startup to the present time in | 221 // Records the time from our process' startup to the present time in |
223 // the UMA histogram |metric_name|. | 222 // the UMA histogram |metric_name|. |
224 void RecordBrowserStartupTime(); | 223 void RecordBrowserStartupTime(); |
225 | 224 |
226 // Records a time value to an UMA histogram in the context of the | 225 // Records a time value to an UMA histogram in the context of the |
227 // PreReadExperiment field-trial. This also reports to the appropriate | 226 // PreReadExperiment field-trial. This also reports to the appropriate |
228 // sub-histogram (_PreRead(Enabled|Disabled)). | 227 // sub-histogram (_PreRead(Enabled|Disabled)). |
229 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 228 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
230 | 229 |
231 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 230 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |