| OLD | NEW |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // Reduce the resolution to 5µs to prevent timing attacks. See: | 72 // Reduce the resolution to 5µs to prevent timing attacks. See: |
| 73 // http://www.w3.org/TR/hr-time-2/#privacy-security | 73 // http://www.w3.org/TR/hr-time-2/#privacy-security |
| 74 static double clampTimeResolution(double timeSeconds); | 74 static double clampTimeResolution(double timeSeconds); |
| 75 | 75 |
| 76 // Translate given platform monotonic time in seconds into a high resolution | 76 // Translate given platform monotonic time in seconds into a high resolution |
| 77 // DOMHighResTimeStamp in milliseconds. The result timestamp is relative to | 77 // DOMHighResTimeStamp in milliseconds. The result timestamp is relative to |
| 78 // document's time origin and has a time resolution that is safe for | 78 // document's time origin and has a time resolution that is safe for |
| 79 // exposing to web. | 79 // exposing to web. |
| 80 DOMHighResTimeStamp monotonicTimeToDOMHighResTimeStamp(double) const; | 80 DOMHighResTimeStamp monotonicTimeToDOMHighResTimeStamp(double) const; |
| 81 double monotonicTimeToDOMHighResTimeStampInMillis(DOMHighResTimeStamp) const; | |
| 82 DOMHighResTimeStamp now() const; | 81 DOMHighResTimeStamp now() const; |
| 83 | 82 |
| 84 double timeOrigin() const { return m_timeOrigin; } | 83 double timeOrigin() const { return m_timeOrigin; } |
| 85 | 84 |
| 86 PerformanceEntryVector getEntries() const; | 85 PerformanceEntryVector getEntries() const; |
| 87 PerformanceEntryVector getEntriesByType(const String& entryType); | 86 PerformanceEntryVector getEntriesByType(const String& entryType); |
| 88 PerformanceEntryVector getEntriesByName(const String& name, | 87 PerformanceEntryVector getEntriesByName(const String& name, |
| 89 const String& entryType); | 88 const String& entryType); |
| 90 | 89 |
| 91 void clearResourceTimings(); | 90 void clearResourceTimings(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 PerformanceEntryTypeMask m_observerFilterOptions; | 167 PerformanceEntryTypeMask m_observerFilterOptions; |
| 169 PerformanceObservers m_observers; | 168 PerformanceObservers m_observers; |
| 170 PerformanceObservers m_activeObservers; | 169 PerformanceObservers m_activeObservers; |
| 171 PerformanceObservers m_suspendedObservers; | 170 PerformanceObservers m_suspendedObservers; |
| 172 Timer<PerformanceBase> m_deliverObservationsTimer; | 171 Timer<PerformanceBase> m_deliverObservationsTimer; |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 } // namespace blink | 174 } // namespace blink |
| 176 | 175 |
| 177 #endif // PerformanceBase_h | 176 #endif // PerformanceBase_h |
| OLD | NEW |