| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 // Helper class used to tell this service if it's allowed to make network | 261 // Helper class used to tell this service if it's allowed to make network |
| 262 // resource requests. | 262 // resource requests. |
| 263 scoped_ptr<web_resource::ResourceRequestAllowedNotifier> | 263 scoped_ptr<web_resource::ResourceRequestAllowedNotifier> |
| 264 resource_request_allowed_notifier_; | 264 resource_request_allowed_notifier_; |
| 265 | 265 |
| 266 // The start time of the last seed request. This is used to measure the | 266 // The start time of the last seed request. This is used to measure the |
| 267 // latency of seed requests. Initially zero. | 267 // latency of seed requests. Initially zero. |
| 268 base::TimeTicks last_request_started_time_; | 268 base::TimeTicks last_request_started_time_; |
| 269 | 269 |
| 270 // The number of requests to the variations server that have been performed. |
| 271 int request_count_; |
| 272 |
| 270 // List of observers of the VariationsService. | 273 // List of observers of the VariationsService. |
| 271 ObserverList<Observer> observer_list_; | 274 ObserverList<Observer> observer_list_; |
| 272 | 275 |
| 273 #if defined(OS_WIN) | 276 #if defined(OS_WIN) |
| 274 // Helper that handles synchronizing Variations with the Registry. | 277 // Helper that handles synchronizing Variations with the Registry. |
| 275 VariationsRegistrySyncer registry_syncer_; | 278 VariationsRegistrySyncer registry_syncer_; |
| 276 #endif | 279 #endif |
| 277 | 280 |
| 278 base::WeakPtrFactory<VariationsService> weak_ptr_factory_; | 281 base::WeakPtrFactory<VariationsService> weak_ptr_factory_; |
| 279 | 282 |
| 280 DISALLOW_COPY_AND_ASSIGN(VariationsService); | 283 DISALLOW_COPY_AND_ASSIGN(VariationsService); |
| 281 }; | 284 }; |
| 282 | 285 |
| 283 } // namespace chrome_variations | 286 } // namespace chrome_variations |
| 284 | 287 |
| 285 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ | 288 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ |
| OLD | NEW |