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

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

Issue 2509143002: Add Prerender type to NavigationType for nav timing 2 (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h b/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h
index 870af370ee1e9cb9c896147f4af8537c40688aef..776af3a21bff62390da5def0576d366eae000be8 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.h
@@ -16,6 +16,13 @@ class CORE_EXPORT PerformanceNavigationTiming final
DEFINE_WRAPPERTYPEINFO();
public:
+ enum PerformanceNavigationType {
+ KTypeNavigate,
+ KTypeReload,
+ KTypeBackForward,
+ KTypePrerender = 255
+ };
+
PerformanceNavigationTiming(double timeOrigin,
double unloadEventStart,
double unloadEventEnd,
@@ -26,7 +33,7 @@ class CORE_EXPORT PerformanceNavigationTiming final
double domContentLoadedEventStart,
double domContentLoadedEventEnd,
double domComplete,
- NavigationType,
+ PerformanceNavigationType,
double redirectStart,
double redirectEnd,
double fetchStart,
@@ -74,7 +81,7 @@ class CORE_EXPORT PerformanceNavigationTiming final
double m_domContentLoadedEventStart;
double m_domContentLoadedEventEnd;
double m_domComplete;
- NavigationType m_type;
+ PerformanceNavigationType m_type;
double m_redirectStart;
double m_redirectEnd;
double m_fetchStart;

Powered by Google App Engine
This is Rietveld 408576698