Chromium Code Reviews| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 | 189 |
| 190 UnthrottledThreadTimer(TimerFiredClass* timerFiredClass, | 190 UnthrottledThreadTimer(TimerFiredClass* timerFiredClass, |
| 191 TimerFiredFunction timerFiredFunction) | 191 TimerFiredFunction timerFiredFunction) |
| 192 : TaskRunnerTimer<TimerFiredClass>(TimerBase::getUnthrottledTaskRunner(), | 192 : TaskRunnerTimer<TimerFiredClass>(TimerBase::getUnthrottledTaskRunner(), |
| 193 timerFiredClass, | 193 timerFiredClass, |
| 194 timerFiredFunction) {} | 194 timerFiredFunction) {} |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 NO_SANITIZE_ADDRESS | 197 NO_SANITIZE_ADDRESS |
| 198 inline bool TimerBase::isActive() const { | 198 inline bool TimerBase::isActive() const { |
| 199 ASSERT(m_thread == currentThread()); | 199 #if DCHECK_IS_ON() |
| 200 DCHECK(m_thread == currentThread()); | |
|
Yuta Kitamura
2016/11/21 09:26:12
Use DCHECK_EQ.
Alexander Alekseev
2016/11/23 09:20:30
Done.
| |
| 201 #endif | |
| 200 return m_weakPtrFactory.hasWeakPtrs(); | 202 return m_weakPtrFactory.hasWeakPtrs(); |
| 201 } | 203 } |
| 202 | 204 |
| 203 } // namespace blink | 205 } // namespace blink |
| 204 | 206 |
| 205 #endif // Timer_h | 207 #endif // Timer_h |
| OLD | NEW |