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

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

Issue 1550563002: Blink Platform: Remove time functions from Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 14 matching lines...) Expand all
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 NO_LAZY_SWEEP_SANITIZE_ADDRESS 186 NO_LAZY_SWEEP_SANITIZE_ADDRESS
186 inline bool TimerBase::isActive() const 187 inline bool TimerBase::isActive() const
187 { 188 {
188 ASSERT(m_thread == currentThread()); 189 ASSERT(m_thread == currentThread());
189 return m_cancellableTimerTask; 190 return m_cancellableTimerTask;
190 } 191 }
191 192
192 } // namespace blink 193 } // namespace blink
193 194
194 #endif // Timer_h 195 #endif // Timer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698