| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // A/B test for spdy when --use-spdy not set. | 125 // A/B test for spdy when --use-spdy not set. |
| 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 SSL False Start. | 132 // A/B test for SSL False Start. |
| 133 void SSLFalseStartFieldTrial(); | 133 void SSLFalseStartFieldTrial(); |
| 134 | 134 |
| 135 // A/B test for warmest socket vs. most recently used socket. |
| 136 void WarmConnectionFieldTrial(); |
| 137 |
| 135 // Used to initialize NSPR where appropriate. | 138 // Used to initialize NSPR where appropriate. |
| 136 virtual void InitializeSSL() = 0; | 139 virtual void InitializeSSL() = 0; |
| 137 | 140 |
| 138 // Methods for |MainMessageLoopStart()| -------------------------------------- | 141 // Methods for |MainMessageLoopStart()| -------------------------------------- |
| 139 | 142 |
| 140 void InitializeMainThread(); | 143 void InitializeMainThread(); |
| 141 | 144 |
| 142 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 145 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
| 143 | 146 |
| 144 static MetricsService* InitializeMetrics( | 147 static MetricsService* InitializeMetrics( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 193 |
| 191 // Displays a warning message if some minimum level of OS support is not | 194 // Displays a warning message if some minimum level of OS support is not |
| 192 // present on the current platform. | 195 // present on the current platform. |
| 193 void WarnAboutMinimumSystemRequirements(); | 196 void WarnAboutMinimumSystemRequirements(); |
| 194 | 197 |
| 195 // Records the time from our process' startup to the present time in | 198 // Records the time from our process' startup to the present time in |
| 196 // the UMA histogram |metric_name|. | 199 // the UMA histogram |metric_name|. |
| 197 void RecordBrowserStartupTime(); | 200 void RecordBrowserStartupTime(); |
| 198 | 201 |
| 199 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 202 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
| OLD | NEW |