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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // A/B test for warmest socket vs. most recently used socket. | 68 // A/B test for warmest socket vs. most recently used socket. |
69 void WarmConnectionFieldTrial(); | 69 void WarmConnectionFieldTrial(); |
70 | 70 |
71 // A/B test for automatically establishing a backup TCP connection when a | 71 // A/B test for automatically establishing a backup TCP connection when a |
72 // specified timeout value is reached. | 72 // specified timeout value is reached. |
73 void ConnectBackupJobsFieldTrial(); | 73 void ConnectBackupJobsFieldTrial(); |
74 | 74 |
75 // A/B test for using a different host prefix in Google search suggest. | 75 // A/B test for using a different host prefix in Google search suggest. |
76 void SuggestPrefixFieldTrial(); | 76 void SuggestPrefixFieldTrial(); |
77 | 77 |
| 78 // Field trial to see what disabling DNS pre-resolution does to |
| 79 // latency of page loads. |
| 80 void PredictorFieldTrial(); |
| 81 |
78 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- | 82 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- |
79 | 83 |
80 static MetricsService* InitializeMetrics( | 84 static MetricsService* InitializeMetrics( |
81 const CommandLine& parsed_command_line, | 85 const CommandLine& parsed_command_line, |
82 const PrefService* local_state); | 86 const PrefService* local_state); |
83 | 87 |
84 // Add an invocation of your field trial init function to this method. | 88 // Add an invocation of your field trial init function to this method. |
85 void SetupFieldTrials(bool metrics_recording_enabled, | 89 void SetupFieldTrials(bool metrics_recording_enabled, |
86 bool proxy_policy_is_set); | 90 bool proxy_policy_is_set); |
87 | 91 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Records the time from our process' startup to the present time in | 143 // Records the time from our process' startup to the present time in |
140 // the UMA histogram |metric_name|. | 144 // the UMA histogram |metric_name|. |
141 void RecordBrowserStartupTime(); | 145 void RecordBrowserStartupTime(); |
142 | 146 |
143 // Records a time value to an UMA histogram in the context of the | 147 // Records a time value to an UMA histogram in the context of the |
144 // PreReadExperiment field-trial. This also reports to the appropriate | 148 // PreReadExperiment field-trial. This also reports to the appropriate |
145 // sub-histogram (_PreRead(Enabled|Disabled)). | 149 // sub-histogram (_PreRead(Enabled|Disabled)). |
146 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); | 150 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); |
147 | 151 |
148 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 152 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |