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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 scoped_ptr<FirstRun::MasterPrefs> master_prefs_; | 158 scoped_ptr<FirstRun::MasterPrefs> master_prefs_; |
159 bool record_search_engine_; | 159 bool record_search_engine_; |
160 TranslateManager* translate_manager_; | 160 TranslateManager* translate_manager_; |
161 Profile* profile_; | 161 Profile* profile_; |
162 bool run_message_loop_; | 162 bool run_message_loop_; |
163 ProcessSingleton::NotifyResult notify_result_; | 163 ProcessSingleton::NotifyResult notify_result_; |
164 | 164 |
165 // Initialized in SetupMetricsAndFieldTrials. | 165 // Initialized in SetupMetricsAndFieldTrials. |
166 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; | 166 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; |
167 | 167 |
168 FRIEND_TEST(BrowserMainTest, WarmConnectionFieldTrial_WarmestSocket); | 168 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, |
169 FRIEND_TEST(BrowserMainTest, WarmConnectionFieldTrial_Random); | 169 WarmConnectionFieldTrial_WarmestSocket); |
170 FRIEND_TEST(BrowserMainTest, WarmConnectionFieldTrial_Invalid); | 170 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); |
| 171 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); |
171 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 172 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
172 }; | 173 }; |
173 | 174 |
174 // Records the conditions that can prevent Breakpad from generating and | 175 // Records the conditions that can prevent Breakpad from generating and |
175 // sending crash reports. The presence of a Breakpad handler (after | 176 // sending crash reports. The presence of a Breakpad handler (after |
176 // attempting to initialize crash reporting) and the presence of a debugger | 177 // attempting to initialize crash reporting) and the presence of a debugger |
177 // are registered with the UMA metrics service. | 178 // are registered with the UMA metrics service. |
178 void RecordBreakpadStatusUMA(MetricsService* metrics); | 179 void RecordBreakpadStatusUMA(MetricsService* metrics); |
179 | 180 |
180 // Displays a warning message if some minimum level of OS support is not | 181 // Displays a warning message if some minimum level of OS support is not |
181 // present on the current platform. | 182 // present on the current platform. |
182 void WarnAboutMinimumSystemRequirements(); | 183 void WarnAboutMinimumSystemRequirements(); |
183 | 184 |
184 // Records the time from our process' startup to the present time in | 185 // Records the time from our process' startup to the present time in |
185 // the UMA histogram |metric_name|. | 186 // the UMA histogram |metric_name|. |
186 void RecordBrowserStartupTime(); | 187 void RecordBrowserStartupTime(); |
187 | 188 |
188 // Records a time value to an UMA histogram in the context of the | 189 // Records a time value to an UMA histogram in the context of the |
189 // PreReadExperiment field-trial. This also reports to the appropriate | 190 // PreReadExperiment field-trial. This also reports to the appropriate |
190 // sub-histogram (_PreRead(Enabled|Disabled)). | 191 // sub-histogram (_PreRead(Enabled|Disabled)). |
191 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 192 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
192 | 193 |
193 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 194 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |