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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/timing/PerformanceBase.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.h b/third_party/WebKit/Source/core/timing/PerformanceBase.h
index cd56537ea910464925457528c0340c59e0091624..4df1d0d86f1e3b972e0bf0a8ff62c3885e678bd6 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h
@@ -43,6 +43,10 @@
namespace blink {
+// Reduce the resolution to 5µs to prevent timing attacks. See:
+// http://www.w3.org/TR/hr-time-2/#privacy-security
+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
+
class Document;
class ExceptionState;
class PerformanceObserver;

Powered by Google App Engine
This is Rietveld 408576698