Chromium Code Reviews| 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; |