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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void PostMainMessageLoopStart() OVERRIDE; | 66 virtual void PostMainMessageLoopStart() OVERRIDE; |
67 virtual void PreCreateThreads() OVERRIDE; | 67 virtual void PreCreateThreads() OVERRIDE; |
68 virtual void PreStartThread(content::BrowserThread::ID identifier) OVERRIDE; | |
69 virtual void PostStartThread(content::BrowserThread::ID identifier) OVERRIDE; | |
70 virtual void PreMainMessageLoopRun() OVERRIDE; | 68 virtual void PreMainMessageLoopRun() OVERRIDE; |
71 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 69 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
72 virtual void PostMainMessageLoopRun() OVERRIDE; | 70 virtual void PostMainMessageLoopRun() OVERRIDE; |
73 virtual void PreStopThread(content::BrowserThread::ID identifier) OVERRIDE; | |
74 virtual void PostStopThread(content::BrowserThread::ID identifier) OVERRIDE; | |
75 virtual void PostDestroyThreads() OVERRIDE; | 71 virtual void PostDestroyThreads() OVERRIDE; |
76 | 72 |
77 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 73 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
78 // in order from PreMainMessageLoopRun(). See implementation for details. | 74 // in order from PreMainMessageLoopRun(). See implementation for details. |
79 virtual void PreProfileInit(); | 75 virtual void PreProfileInit(); |
80 virtual void PostProfileInit(); | 76 virtual void PostProfileInit(); |
81 virtual void PreBrowserStart(); | 77 virtual void PreBrowserStart(); |
82 virtual void PostBrowserStart(); | 78 virtual void PostBrowserStart(); |
83 | 79 |
84 // Displays a warning message that we can't find any locale data files. | 80 // Displays a warning message that we can't find any locale data files. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // Records the time from our process' startup to the present time in | 220 // Records the time from our process' startup to the present time in |
225 // the UMA histogram |metric_name|. | 221 // the UMA histogram |metric_name|. |
226 void RecordBrowserStartupTime(); | 222 void RecordBrowserStartupTime(); |
227 | 223 |
228 // Records a time value to an UMA histogram in the context of the | 224 // Records a time value to an UMA histogram in the context of the |
229 // PreReadExperiment field-trial. This also reports to the appropriate | 225 // PreReadExperiment field-trial. This also reports to the appropriate |
230 // sub-histogram (_PreRead(Enabled|Disabled)). | 226 // sub-histogram (_PreRead(Enabled|Disabled)). |
231 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 227 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
232 | 228 |
233 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 229 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |