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_METRICS_REPORTING_SCHEDULER_H_ | 5 #ifndef COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
6 #define CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_ | 6 #define COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.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 | 13 |
14 // Scheduler task to drive a MetricsService object's uploading. | 14 // Scheduler task to drive a MetricsService object's uploading. |
15 class MetricsReportingScheduler { | 15 class MetricsReportingScheduler { |
16 public: | 16 public: |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Whether the InitTaskComplete() callback has been called. | 68 // Whether the InitTaskComplete() callback has been called. |
69 bool init_task_complete_; | 69 bool init_task_complete_; |
70 | 70 |
71 // Whether the initial scheduled upload timer has fired before the init task | 71 // Whether the initial scheduled upload timer has fired before the init task |
72 // has been completed. | 72 // has been completed. |
73 bool waiting_for_init_task_complete_; | 73 bool waiting_for_init_task_complete_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler); | 75 DISALLOW_COPY_AND_ASSIGN(MetricsReportingScheduler); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_SCHEDULER_H_ | 78 #endif // COMPONENTS_METRICS_METRICS_REPORTING_SCHEDULER_H_ |
OLD | NEW |