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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 scoped_ptr<base::FieldTrialList> field_trial_list_; | 151 scoped_ptr<base::FieldTrialList> field_trial_list_; |
152 | 152 |
153 ChromeBrowserFieldTrials browser_field_trials_; | 153 ChromeBrowserFieldTrials browser_field_trials_; |
154 | 154 |
155 // Vector of additional ChromeBrowserMainExtraParts. | 155 // Vector of additional ChromeBrowserMainExtraParts. |
156 // Parts are deleted in the inverse order they are added. | 156 // Parts are deleted in the inverse order they are added. |
157 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; | 157 std::vector<ChromeBrowserMainExtraParts*> chrome_extra_parts_; |
158 | 158 |
159 // Members initialized after / released before main_message_loop_ ------------ | 159 // Members initialized after / released before main_message_loop_ ------------ |
160 | 160 |
161 scoped_ptr<StartupBrowserCreator> browser_creator_; | |
162 scoped_ptr<BrowserProcessImpl> browser_process_; | 161 scoped_ptr<BrowserProcessImpl> browser_process_; |
163 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer> | 162 scoped_refptr<chrome_browser_metrics::TrackingSynchronizer> |
164 tracking_synchronizer_; | 163 tracking_synchronizer_; |
164 #if !defined(OS_ANDROID) | |
165 // Browser creation happens on the Java side in Android. | |
166 scoped_ptr<StartupBrowserCreator> browser_creator_; | |
Lei Zhang
2012/08/29 19:23:57
Are the StartupBrowserCreator class and ProcessSin
Yaron
2012/08/29 20:48:33
StartupBrowserCreator was already excluded via gyp
| |
167 | |
168 // Android doesn't support multiple browser processes, so it doesn't implement | |
169 // ProcessSingleton. | |
165 scoped_ptr<ProcessSingleton> process_singleton_; | 170 scoped_ptr<ProcessSingleton> process_singleton_; |
171 #endif | |
166 scoped_ptr<first_run::MasterPrefs> master_prefs_; | 172 scoped_ptr<first_run::MasterPrefs> master_prefs_; |
167 bool record_search_engine_; | 173 bool record_search_engine_; |
168 TranslateManager* translate_manager_; | 174 TranslateManager* translate_manager_; |
169 Profile* profile_; | 175 Profile* profile_; |
170 bool run_message_loop_; | 176 bool run_message_loop_; |
171 ProcessSingleton::NotifyResult notify_result_; | 177 ProcessSingleton::NotifyResult notify_result_; |
172 | 178 |
173 // Initialized in SetupMetricsAndFieldTrials. | 179 // Initialized in SetupMetricsAndFieldTrials. |
174 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; | 180 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; |
175 | 181 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 // Records the time from our process' startup to the present time in | 214 // Records the time from our process' startup to the present time in |
209 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 215 // the Startup.BrowserMessageLoopStartTime UMA histogram. |
210 void RecordBrowserStartupTime(); | 216 void RecordBrowserStartupTime(); |
211 | 217 |
212 // Records a time value to an UMA histogram in the context of the | 218 // Records a time value to an UMA histogram in the context of the |
213 // PreReadExperiment field-trial. This also reports to the appropriate | 219 // PreReadExperiment field-trial. This also reports to the appropriate |
214 // sub-histogram (_PreRead(Enabled|Disabled)). | 220 // sub-histogram (_PreRead(Enabled|Disabled)). |
215 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 221 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
216 | 222 |
217 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 223 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |