Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2509143002: Add Prerender type to NavigationType for nav timing 2 (Closed)
Patch Set: synced client Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bbee2edb770f543264ff4152219cc1c445af1ae..739d5a5968a15f8b05b64e70a461067ec165c4fb 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;
@@ -124,6 +128,11 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
DECLARE_VIRTUAL_TRACE();
+ private:
+ static PerformanceNavigationTiming::NavigationType getNavigationType(
+ NavigationType,
+ const Document*);
+
protected:
explicit PerformanceBase(double timeOrigin);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698