| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 // Tests can set this to true to disable restricting cookie access in the | 217 // Tests can set this to true to disable restricting cookie access in the |
| 218 // network stack, as this can only be done once. | 218 // network stack, as this can only be done once. |
| 219 static bool disable_enforcing_cookie_policies_for_tests_; | 219 static bool disable_enforcing_cookie_policies_for_tests_; |
| 220 | 220 |
| 221 friend class BrowserMainTest; | 221 friend class BrowserMainTest; |
| 222 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, | 222 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, |
| 223 WarmConnectionFieldTrial_WarmestSocket); | 223 WarmConnectionFieldTrial_WarmestSocket); |
| 224 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); | 224 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); |
| 225 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); | 225 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); |
| 226 FRIEND_TEST_ALL_PREFIXES(CloudPrintProxyPolicyTest, |
| 227 CheckCommandLineCrossTalk); |
| 226 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 228 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 // Records the conditions that can prevent Breakpad from generating and | 231 // Records the conditions that can prevent Breakpad from generating and |
| 230 // sending crash reports. The presence of a Breakpad handler (after | 232 // sending crash reports. The presence of a Breakpad handler (after |
| 231 // attempting to initialize crash reporting) and the presence of a debugger | 233 // attempting to initialize crash reporting) and the presence of a debugger |
| 232 // are registered with the UMA metrics service. | 234 // are registered with the UMA metrics service. |
| 233 void RecordBreakpadStatusUMA(MetricsService* metrics); | 235 void RecordBreakpadStatusUMA(MetricsService* metrics); |
| 234 | 236 |
| 235 // Displays a warning message if some minimum level of OS support is not | 237 // Displays a warning message if some minimum level of OS support is not |
| 236 // present on the current platform. | 238 // present on the current platform. |
| 237 void WarnAboutMinimumSystemRequirements(); | 239 void WarnAboutMinimumSystemRequirements(); |
| 238 | 240 |
| 239 // Records the time from our process' startup to the present time in | 241 // Records the time from our process' startup to the present time in |
| 240 // the Startup.BrowserMessageLoopStartTime UMA histogram. | 242 // the Startup.BrowserMessageLoopStartTime UMA histogram. |
| 241 void RecordBrowserStartupTime(); | 243 void RecordBrowserStartupTime(); |
| 242 | 244 |
| 243 // Records a time value to an UMA histogram in the context of the | 245 // Records a time value to an UMA histogram in the context of the |
| 244 // PreReadExperiment field-trial. This also reports to the appropriate | 246 // PreReadExperiment field-trial. This also reports to the appropriate |
| 245 // sub-histogram (_PreRead(Enabled|Disabled)). | 247 // sub-histogram (_PreRead(Enabled|Disabled)). |
| 246 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 248 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
| 247 | 249 |
| 248 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 250 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |