diff options
Diffstat (limited to 'dom/performance/PerformanceNavigationTiming.h')
-rw-r--r-- | dom/performance/PerformanceNavigationTiming.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dom/performance/PerformanceNavigationTiming.h b/dom/performance/PerformanceNavigationTiming.h index f528c5337e..93471e17de 100644 --- a/dom/performance/PerformanceNavigationTiming.h +++ b/dom/performance/PerformanceNavigationTiming.h @@ -27,14 +27,14 @@ public: // so that timestamps are relative to startTime, as opposed to the // performance.timing object for which timestamps are absolute and has a // zeroTime initialized to navigationStart - explicit PerformanceNavigationTiming(PerformanceTiming* aPerformanceTiming, - Performance* aPerformance, - nsIHttpChannel* aChannel) - : PerformanceResourceTiming(aPerformanceTiming, aPerformance, - NS_LITERAL_STRING("document"), aChannel) { - SetEntryType(NS_LITERAL_STRING("navigation")); - SetInitiatorType(NS_LITERAL_STRING("navigation")); - } + PerformanceNavigationTiming(UniquePtr<PerformanceTimingData>&& aPerformanceTiming, + Performance* aPerformance, + const nsAString& aName) + : PerformanceResourceTiming(Move(aPerformanceTiming), aPerformance, aName) + { + SetEntryType(NS_LITERAL_STRING("navigation")); + SetInitiatorType(NS_LITERAL_STRING("navigation")); + } DOMHighResTimeStamp Duration() const override { |