From 98438fa32e4f93b59359662188e164c7c828acb7 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 29 Apr 2018 12:15:36 +0200 Subject: Bug 1313420 - Implement Performance.timeOrigin - part 1 https://hg.mozilla.org/mozilla-central/rev/cf0f72f0b0be --- dom/performance/Performance.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dom/performance/Performance.h') diff --git a/dom/performance/Performance.h b/dom/performance/Performance.h index 04dd76bc7..8495235a2 100644 --- a/dom/performance/Performance.h +++ b/dom/performance/Performance.h @@ -24,6 +24,7 @@ namespace dom { class PerformanceEntry; class PerformanceNavigation; class PerformanceObserver; +class PerformanceService; class PerformanceTiming; namespace workers { @@ -69,6 +70,8 @@ public: virtual DOMHighResTimeStamp Now() const = 0; + DOMHighResTimeStamp TimeOrigin(); + void Mark(const nsAString& aName, ErrorResult& aRv); void ClearMarks(const Optional& aName); @@ -157,6 +160,8 @@ private: uint64_t mResourceTimingBufferSize; static const uint64_t kDefaultResourceTimingBufferSize = 150; bool mPendingNotificationObserversTask; + + RefPtr mPerformanceService; }; } // namespace dom -- cgit v1.2.3