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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 2 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 #include "core/events/EventTarget.h" 36 #include "core/events/EventTarget.h"
37 #include "core/timing/PerformanceEntry.h" 37 #include "core/timing/PerformanceEntry.h"
38 #include "platform/Timer.h" 38 #include "platform/Timer.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "wtf/RefCounted.h" 40 #include "wtf/RefCounted.h"
41 #include "wtf/RefPtr.h" 41 #include "wtf/RefPtr.h"
42 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 // Reduce the resolution to 5µs to prevent timing attacks. See:
47 // http://www.w3.org/TR/hr-time-2/#privacy-security
48 double toSafePrecisionTime(double);
Rick Byers 2015/09/25 17:29:33 Maybe this should be a static method on Performanc
majidvp 2015/09/29 14:21:31 Some one have added an equivalent static method wh
Rick Byers 2015/09/29 15:57:59 Perfect! Perhaps worth checking to see who that w
49
46 class Document; 50 class Document;
47 class ExceptionState; 51 class ExceptionState;
48 class PerformanceObserver; 52 class PerformanceObserver;
49 class PerformanceTiming; 53 class PerformanceTiming;
50 class ResourceTimingInfo; 54 class ResourceTimingInfo;
51 class UserTiming; 55 class UserTiming;
52 56
53 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; 57 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>;
54 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; 58 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>;
55 59
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 PerformanceEntryTypeMask m_observerFilterOptions; 129 PerformanceEntryTypeMask m_observerFilterOptions;
126 PerformanceObservers m_observers; 130 PerformanceObservers m_observers;
127 PerformanceObservers m_activeObservers; 131 PerformanceObservers m_activeObservers;
128 PerformanceObservers m_suspendedObservers; 132 PerformanceObservers m_suspendedObservers;
129 Timer<PerformanceBase> m_deliverObservationsTimer; 133 Timer<PerformanceBase> m_deliverObservationsTimer;
130 }; 134 };
131 135
132 } // namespace blink 136 } // namespace blink
133 137
134 #endif // PerformanceBase_h 138 #endif // PerformanceBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698