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_TIMERS_ALARM_TIMER_CHROMEOS_H_ | 5 #ifndef COMPONENTS_TIMERS_ALARM_TIMER_CHROMEOS_H_ |
6 #define COMPONENTS_TIMERS_ALARM_TIMER_CHROMEOS_H_ | 6 #define COMPONENTS_TIMERS_ALARM_TIMER_CHROMEOS_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 class MessageLoop; | 17 class MessageLoop; |
17 struct PendingTask; | 18 struct PendingTask; |
18 } | 19 } |
19 | 20 |
20 namespace timers { | 21 namespace timers { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 SimpleAlarmTimer(const tracked_objects::Location& posted_from, | 138 SimpleAlarmTimer(const tracked_objects::Location& posted_from, |
138 base::TimeDelta delay, | 139 base::TimeDelta delay, |
139 const base::Closure& user_task); | 140 const base::Closure& user_task); |
140 | 141 |
141 ~SimpleAlarmTimer() override; | 142 ~SimpleAlarmTimer() override; |
142 }; | 143 }; |
143 | 144 |
144 } // namespace timers | 145 } // namespace timers |
145 | 146 |
146 #endif // COMPONENTS_TIMERS_ALARM_TIMER_CHROMEOS_H_ | 147 #endif // COMPONENTS_TIMERS_ALARM_TIMER_CHROMEOS_H_ |
OLD | NEW |