Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/WebKit/Source/platform/Timer.h

Issue 1826733002: Remove ASSERT_WITH_MESSAGE family. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 private: 123 private:
124 TimerBase* m_timer; // NOT OWNED 124 TimerBase* m_timer; // NOT OWNED
125 }; 125 };
126 126
127 double m_nextFireTime; // 0 if inactive 127 double m_nextFireTime; // 0 if inactive
128 double m_repeatInterval; // 0 if not repeating 128 double m_repeatInterval; // 0 if not repeating
129 WebTraceLocation m_location; 129 WebTraceLocation m_location;
130 CancellableTimerTask* m_cancellableTimerTask; // NOT OWNED 130 CancellableTimerTask* m_cancellableTimerTask; // NOT OWNED
131 WebTaskRunner* m_webTaskRunner; // Not owned. 131 WebTaskRunner* m_webTaskRunner; // Not owned.
132 132
133 #if ENABLE(ASSERT) 133 #if DCHECK_IS_ON()
134 ThreadIdentifier m_thread; 134 ThreadIdentifier m_thread;
135 #endif 135 #endif
136 136
137 friend class ThreadTimers; 137 friend class ThreadTimers;
138 friend class TimerHeapLessThanFunction; 138 friend class TimerHeapLessThanFunction;
139 friend class TimerHeapReference; 139 friend class TimerHeapReference;
140 }; 140 };
141 141
142 template<typename T, bool = IsGarbageCollectedType<T>::value> 142 template<typename T, bool = IsGarbageCollectedType<T>::value>
143 class TimerIsObjectAliveTrait { 143 class TimerIsObjectAliveTrait {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 NO_LAZY_SWEEP_SANITIZE_ADDRESS 213 NO_LAZY_SWEEP_SANITIZE_ADDRESS
214 inline bool TimerBase::isActive() const 214 inline bool TimerBase::isActive() const
215 { 215 {
216 ASSERT(m_thread == currentThread()); 216 ASSERT(m_thread == currentThread());
217 return m_cancellableTimerTask; 217 return m_cancellableTimerTask;
218 } 218 }
219 219
220 } // namespace blink 220 } // namespace blink
221 221
222 #endif // Timer_h 222 #endif // Timer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698