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 12 matching lines...) Expand all Loading... |
23 class BrowserProcessImpl; | 23 class BrowserProcessImpl; |
24 class ChromeBrowserMainExtraParts; | 24 class ChromeBrowserMainExtraParts; |
25 class FieldTrialSynchronizer; | 25 class FieldTrialSynchronizer; |
26 class HistogramSynchronizer; | 26 class HistogramSynchronizer; |
27 class MetricsService; | 27 class MetricsService; |
28 class PrefService; | 28 class PrefService; |
29 class Profile; | 29 class Profile; |
30 class StartupTimeBomb; | 30 class StartupTimeBomb; |
31 class ShutdownWatcherHelper; | 31 class ShutdownWatcherHelper; |
32 class TranslateManager; | 32 class TranslateManager; |
| 33 class VariationsService; |
33 | 34 |
34 namespace chrome_browser { | 35 namespace chrome_browser { |
35 // For use by ShowMissingLocaleMessageBox. | 36 // For use by ShowMissingLocaleMessageBox. |
36 extern const char kMissingLocaleDataTitle[]; | 37 extern const char kMissingLocaleDataTitle[]; |
37 extern const char kMissingLocaleDataMessage[]; | 38 extern const char kMissingLocaleDataMessage[]; |
38 } | 39 } |
39 | 40 |
40 namespace chrome_browser_metrics { | 41 namespace chrome_browser_metrics { |
41 class TrackingSynchronizer; | 42 class TrackingSynchronizer; |
42 } | 43 } |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // Members initialized in PreMainMessageLoopRun, needed in | 205 // Members initialized in PreMainMessageLoopRun, needed in |
205 // PreMainMessageLoopRunThreadsCreated. | 206 // PreMainMessageLoopRunThreadsCreated. |
206 bool is_first_run_; | 207 bool is_first_run_; |
207 bool first_run_ui_bypass_; | 208 bool first_run_ui_bypass_; |
208 PrefService* local_state_; | 209 PrefService* local_state_; |
209 FilePath user_data_dir_; | 210 FilePath user_data_dir_; |
210 | 211 |
211 // Members needed across shutdown methods. | 212 // Members needed across shutdown methods. |
212 bool restart_last_session_; | 213 bool restart_last_session_; |
213 | 214 |
| 215 // Initialized in SetupMetricsAndFieldTrials. |
| 216 scoped_ptr<VariationsService> variations_service_; |
| 217 |
214 // Tests can set this to true to disable restricting cookie access in the | 218 // Tests can set this to true to disable restricting cookie access in the |
215 // network stack, as this can only be done once. | 219 // network stack, as this can only be done once. |
216 static bool disable_enforcing_cookie_policies_for_tests_; | 220 static bool disable_enforcing_cookie_policies_for_tests_; |
217 | 221 |
218 friend class BrowserMainTest; | 222 friend class BrowserMainTest; |
219 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, | 223 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, |
220 WarmConnectionFieldTrial_WarmestSocket); | 224 WarmConnectionFieldTrial_WarmestSocket); |
221 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); | 225 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); |
222 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); | 226 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); |
223 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 227 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
(...skipping 12 matching lines...) Expand all Loading... |
236 // Records the time from our process' startup to the present time in | 240 // Records the time from our process' startup to the present time in |
237 // the UMA histogram |metric_name|. | 241 // the UMA histogram |metric_name|. |
238 void RecordBrowserStartupTime(); | 242 void RecordBrowserStartupTime(); |
239 | 243 |
240 // Records a time value to an UMA histogram in the context of the | 244 // Records a time value to an UMA histogram in the context of the |
241 // PreReadExperiment field-trial. This also reports to the appropriate | 245 // PreReadExperiment field-trial. This also reports to the appropriate |
242 // sub-histogram (_PreRead(Enabled|Disabled)). | 246 // sub-histogram (_PreRead(Enabled|Disabled)). |
243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 247 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
244 | 248 |
245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 249 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |