| 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_TIMER_RTC_ALARM_H_ | 5 #ifndef COMPONENTS_TIMER_RTC_ALARM_H_ |
| 6 #define COMPONENTS_TIMER_RTC_ALARM_H_ | 6 #define COMPONENTS_TIMER_RTC_ALARM_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // parent_->OnTimerFired() only if |origin_event_id_| matches the event id | 84 // parent_->OnTimerFired() only if |origin_event_id_| matches the event id |
| 85 // that was passed in to it. This is used to get around a race condition | 85 // that was passed in to it. This is used to get around a race condition |
| 86 // where the user resets the timer on the original thread, while the event is | 86 // where the user resets the timer on the original thread, while the event is |
| 87 // being fired on the IO thread at the same time. | 87 // being fired on the IO thread at the same time. |
| 88 int origin_event_id_; | 88 int origin_event_id_; |
| 89 int io_event_id_; | 89 int io_event_id_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(RtcAlarm); | 91 DISALLOW_COPY_AND_ASSIGN(RtcAlarm); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 |
| 94 } // namespace timers | 95 } // namespace timers |
| 95 #endif // COMPONENTS_TIMER_RTC_ALARM_H_ | 96 #endif // COMPONENTS_TIMER_RTC_ALARM_H_ |
| OLD | NEW |