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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // A/B test for the maximum number of connections per proxy server. | 122 // A/B test for the maximum number of connections per proxy server. |
123 void ProxyConnectionsFieldTrial(); | 123 void ProxyConnectionsFieldTrial(); |
124 | 124 |
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 warmest socket vs. most recently used socket. |
| 133 void WarmConnectionFieldTrial(); |
| 134 |
132 // Used to initialize NSPR where appropriate. | 135 // Used to initialize NSPR where appropriate. |
133 virtual void InitializeSSL() = 0; | 136 virtual void InitializeSSL() = 0; |
134 | 137 |
135 // Methods for |MainMessageLoopStart()| -------------------------------------- | 138 // Methods for |MainMessageLoopStart()| -------------------------------------- |
136 | 139 |
137 void InitializeMainThread(); | 140 void InitializeMainThread(); |
138 | 141 |
139 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 142 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
140 | 143 |
141 static MetricsService* InitializeMetrics( | 144 static MetricsService* InitializeMetrics( |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 190 |
188 // Displays a warning message if some minimum level of OS support is not | 191 // Displays a warning message if some minimum level of OS support is not |
189 // present on the current platform. | 192 // present on the current platform. |
190 void WarnAboutMinimumSystemRequirements(); | 193 void WarnAboutMinimumSystemRequirements(); |
191 | 194 |
192 // Records the time from our process' startup to the present time in | 195 // Records the time from our process' startup to the present time in |
193 // the UMA histogram |metric_name|. | 196 // the UMA histogram |metric_name|. |
194 void RecordBrowserStartupTime(); | 197 void RecordBrowserStartupTime(); |
195 | 198 |
196 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ | 199 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ |
OLD | NEW |