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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.cpp
index 080836e01b62a151347b338d2609ebba07393c95..511148688462007074fd4bb50d4126d08b9588da 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.cpp
@@ -31,7 +31,7 @@ PerformanceNavigationTiming::PerformanceNavigationTiming(
double domContentLoadedEventStart,
double domContentLoadedEventEnd,
double domComplete,
- NavigationType type,
+ PerformanceNavigationType type,
double redirectStart,
double redirectEnd,
double fetchStart,
@@ -124,10 +124,12 @@ AtomicString PerformanceNavigationTiming::type() const {
// TODO(sunjian) Right now NavigationType doesn't seem to have a Prerender
// type yet, need to look into this crbug/663217
switch (m_type) {
- case NavigationTypeReload:
+ case KTypeReload:
return "reload";
- case NavigationTypeBackForward:
+ case KTypeBackForward:
return "back_forward";
+ case KTypePrerender:
+ return "prerender";
default:
return "navigate";
}

Powered by Google App Engine
This is Rietveld 408576698