OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ |
6 #define COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" |
10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
11 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
12 | 13 |
13 class PrefService; | 14 class PrefService; |
14 | 15 |
15 namespace variations { | 16 namespace variations { |
16 | 17 |
17 // A helper class that makes VariationsService requests at the correct times. | 18 // A helper class that makes VariationsService requests at the correct times. |
18 class VariationsRequestScheduler { | 19 class VariationsRequestScheduler { |
19 public: | 20 public: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 62 |
62 // A one-shot timer used for scheduling out-of-band fetches. | 63 // A one-shot timer used for scheduling out-of-band fetches. |
63 base::OneShotTimer one_shot_timer_; | 64 base::OneShotTimer one_shot_timer_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(VariationsRequestScheduler); | 66 DISALLOW_COPY_AND_ASSIGN(VariationsRequestScheduler); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace variations | 69 } // namespace variations |
69 | 70 |
70 #endif // COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ | 71 #endif // COMPONENTS_VARIATIONS_VARIATIONS_REQUEST_SCHEDULER_H_ |
OLD | NEW |