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

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

Issue 2509143002: Add Prerender type to NavigationType for nav timing 2 (Closed)
Patch Set: addressed comments 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..bde5b567ddd8b931eac46cd94c207481ae0893ab 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
kinuko 2016/11/22 03:05:22 'PerformanceNavigationType' sounds a little odd (w
sunjian 2016/11/22 22:04:42 Done.
+ };
Yoav Weiss 2016/11/22 10:46:32 A nearly identical enum is already defined (but no
sunjian 2016/11/22 22:04:42 Agree. That's why i named this new enum differentl
+
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