OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef Timer_h | 26 #ifndef Timer_h |
27 #define Timer_h | 27 #define Timer_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "public/platform/WebTaskRunner.h" | 31 #include "public/platform/WebTaskRunner.h" |
32 #include "public/platform/WebTraceLocation.h" | 32 #include "public/platform/WebTraceLocation.h" |
33 #include "wtf/AddressSanitizer.h" | 33 #include "wtf/AddressSanitizer.h" |
34 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
| 35 #include "wtf/CurrentTime.h" |
35 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
36 #include "wtf/Threading.h" | 37 #include "wtf/Threading.h" |
37 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
41 // Time intervals are all in seconds. | 42 // Time intervals are all in seconds. |
42 | 43 |
43 class PLATFORM_EXPORT TimerBase { | 44 class PLATFORM_EXPORT TimerBase { |
44 WTF_MAKE_NONCOPYABLE(TimerBase); | 45 WTF_MAKE_NONCOPYABLE(TimerBase); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 NO_LAZY_SWEEP_SANITIZE_ADDRESS | 211 NO_LAZY_SWEEP_SANITIZE_ADDRESS |
211 inline bool TimerBase::isActive() const | 212 inline bool TimerBase::isActive() const |
212 { | 213 { |
213 ASSERT(m_thread == currentThread()); | 214 ASSERT(m_thread == currentThread()); |
214 return m_cancellableTimerTask; | 215 return m_cancellableTimerTask; |
215 } | 216 } |
216 | 217 |
217 } // namespace blink | 218 } // namespace blink |
218 | 219 |
219 #endif // Timer_h | 220 #endif // Timer_h |
OLD | NEW |