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 2de9eb2a0cbc1eced0de6421e9daa838d1b5ee61..e9ba47d9c8c50e614e36b1d53c5953e59fe12f05 100644 |
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h |
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h |
@@ -35,7 +35,9 @@ |
#include "core/CoreExport.h" |
#include "core/dom/DOMHighResTimeStamp.h" |
#include "core/events/EventTarget.h" |
+#include "core/loader/FrameLoaderTypes.h" |
#include "core/timing/PerformanceEntry.h" |
+#include "core/timing/PerformanceNavigationTiming.h" |
#include "platform/Timer.h" |
#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
@@ -57,6 +59,8 @@ using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; |
class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
+ friend class PerformanceBaseTest; |
+ |
public: |
~PerformanceBase() override; |
@@ -119,6 +123,11 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
DECLARE_VIRTUAL_TRACE(); |
+ private: |
+ static PerformanceNavigationTiming::NavigationType getNavigationType( |
+ NavigationType, |
+ const Document*); |
+ |
protected: |
explicit PerformanceBase(double timeOrigin); |