| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ | 5 #ifndef COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
| 6 #define COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ | 6 #define COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "components/metrics/net/network_metrics_provider.h" | 13 #include "components/metrics/net/network_metrics_provider.h" |
| 14 | 14 |
| 15 namespace metrics { | 15 namespace metrics { |
| 16 | 16 |
| 17 // Scheduler task to drive a MetricsService object's uploading. | 17 // Scheduler task to drive a MetricsService object's uploading. |
| 18 class MetricsReportingScheduler { | 18 class MetricsReportingScheduler { |
| 19 public: | 19 public: |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Callback function used to get the standard upload time. | 91 // Callback function used to get the standard upload time. |
| 92 base::Callback<base::TimeDelta(void)> upload_interval_callback_; | 92 base::Callback<base::TimeDelta(void)> upload_interval_callback_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler); | 94 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace metrics | 97 } // namespace metrics |
| 98 | 98 |
| 99 #endif // COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ | 99 #endif // COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
| OLD | NEW |