| 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_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_BROWSER_MAIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void SpdyFieldTrial(); | 126 void SpdyFieldTrial(); |
| 127 | 127 |
| 128 // A/B test for automatically establishing a backup TCP connection when a | 128 // A/B test for automatically establishing a backup TCP connection when a |
| 129 // specified timeout value is reached. | 129 // specified timeout value is reached. |
| 130 void ConnectBackupJobsFieldTrial(); | 130 void ConnectBackupJobsFieldTrial(); |
| 131 | 131 |
| 132 // A/B test for disabling revocation checking for sites with pinned | 132 // A/B test for disabling revocation checking for sites with pinned |
| 133 // certificates. | 133 // certificates. |
| 134 void RevocationCheckingDisabledFieldTrial(); | 134 void RevocationCheckingDisabledFieldTrial(); |
| 135 | 135 |
| 136 // A/B test for warmest socket vs. most recently used socket. |
| 137 void WarmConnectionFieldTrial(); |
| 138 |
| 136 // Used to initialize NSPR where appropriate. | 139 // Used to initialize NSPR where appropriate. |
| 137 virtual void InitializeSSL() = 0; | 140 virtual void InitializeSSL() = 0; |
| 138 | 141 |
| 139 // Methods for |MainMessageLoopStart()| -------------------------------------- | 142 // Methods for |MainMessageLoopStart()| -------------------------------------- |
| 140 | 143 |
| 141 void InitializeMainThread(); | 144 void InitializeMainThread(); |
| 142 | 145 |
| 143 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 146 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
| 144 | 147 |
| 145 static MetricsService* InitializeMetrics( | 148 static MetricsService* InitializeMetrics( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 194 |
| 192 // Displays a warning message if some minimum level of OS support is not | 195 // Displays a warning message if some minimum level of OS support is not |
| 193 // present on the current platform. | 196 // present on the current platform. |
| 194 void WarnAboutMinimumSystemRequirements(); | 197 void WarnAboutMinimumSystemRequirements(); |
| 195 | 198 |
| 196 // Records the time from our process' startup to the present time in | 199 // Records the time from our process' startup to the present time in |
| 197 // the UMA histogram |metric_name|. | 200 // the UMA histogram |metric_name|. |
| 198 void RecordBrowserStartupTime(); | 201 void RecordBrowserStartupTime(); |
| 199 | 202 |
| 200 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 203 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
| OLD | NEW |