| 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_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 bool create_trials_from_seed_called_; | 154 bool create_trials_from_seed_called_; |
| 155 | 155 |
| 156 // The timer used to repeatedly ping the server. Keep this as an instance | 156 // The timer used to repeatedly ping the server. Keep this as an instance |
| 157 // member so if VariationsService goes out of scope, the timer is | 157 // member so if VariationsService goes out of scope, the timer is |
| 158 // automatically canceled. | 158 // automatically canceled. |
| 159 base::RepeatingTimer<VariationsService> timer_; | 159 base::RepeatingTimer<VariationsService> timer_; |
| 160 | 160 |
| 161 // Helper class used to tell this service if it's allowed to make network | 161 // Helper class used to tell this service if it's allowed to make network |
| 162 // resource requests. | 162 // resource requests. |
| 163 scoped_ptr<ResourceRequestAllowedNotifier> resource_request_allowed_notifier_; | 163 scoped_ptr<ResourceRequestAllowedNotifier> resource_request_allowed_notifier_; |
| 164 |
| 165 // The start time of the last seed request. This is used to measure the |
| 166 // latency of seed requests. Initially zero. |
| 167 base::TimeTicks last_request_started_time_; |
| 164 }; | 168 }; |
| 165 | 169 |
| 166 } // namespace chrome_variations | 170 } // namespace chrome_variations |
| 167 | 171 |
| 168 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 172 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| OLD | NEW |