OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 const MainFunctionParams& parameters_; | 112 const MainFunctionParams& parameters_; |
113 const CommandLine& parsed_command_line_; | 113 const CommandLine& parsed_command_line_; |
114 int result_code_; | 114 int result_code_; |
115 | 115 |
116 // Create ShutdownWatcherHelper object for watching jank during shutdown. | 116 // Create ShutdownWatcherHelper object for watching jank during shutdown. |
117 // Please keep |shutdown_watcher| as the first object constructed, and hence | 117 // Please keep |shutdown_watcher| as the first object constructed, and hence |
118 // it is destroyed last. | 118 // it is destroyed last. |
119 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_; | 119 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_; |
120 | 120 |
121 #if defined(TRACK_ALL_TASK_OBJECTS) | |
122 // Creating this object starts tracking the creation and deletion of Task | 121 // Creating this object starts tracking the creation and deletion of Task |
123 // instance. This MUST be done before main_message_loop, so that it is | 122 // instance. This MUST be done before main_message_loop, so that it is |
124 // destroyed after the main_message_loop. | 123 // destroyed after the main_message_loop. |
125 tracked_objects::AutoTracking tracking_objects_; | 124 tracked_objects::AutoTracking tracking_objects_; |
126 #endif | |
127 | 125 |
128 // Statistical testing infrastructure for the entire browser. NULL until | 126 // Statistical testing infrastructure for the entire browser. NULL until |
129 // SetupMetricsAndFieldTrials is called. | 127 // SetupMetricsAndFieldTrials is called. |
130 scoped_ptr<base::FieldTrialList> field_trial_list_; | 128 scoped_ptr<base::FieldTrialList> field_trial_list_; |
131 | 129 |
132 // Members initialized after / released before main_message_loop_ ------------ | 130 // Members initialized after / released before main_message_loop_ ------------ |
133 | 131 |
134 scoped_ptr<BrowserProcessImpl> browser_process_; | 132 scoped_ptr<BrowserProcessImpl> browser_process_; |
135 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; | 133 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; |
136 scoped_ptr<ProcessSingleton> process_singleton_; | 134 scoped_ptr<ProcessSingleton> process_singleton_; |
(...skipping 26 matching lines...) Expand all Loading... |
163 // Records the time from our process' startup to the present time in | 161 // Records the time from our process' startup to the present time in |
164 // the UMA histogram |metric_name|. | 162 // the UMA histogram |metric_name|. |
165 void RecordBrowserStartupTime(); | 163 void RecordBrowserStartupTime(); |
166 | 164 |
167 // Records a time value to an UMA histogram in the context of the | 165 // Records a time value to an UMA histogram in the context of the |
168 // PreReadExperiment field-trial. This also reports to the appropriate | 166 // PreReadExperiment field-trial. This also reports to the appropriate |
169 // sub-histogram (_PreRead(Enabled|Disabled)). | 167 // sub-histogram (_PreRead(Enabled|Disabled)). |
170 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 168 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
171 | 169 |
172 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 170 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |