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

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

Issue 2761113002: Move getNavigationType logic from PerformanceBase to PerformanceNavigationTiming. (Closed)
Patch Set: sync to HEAD Created 3 years, 9 months 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/PerformanceBase.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.cpp b/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
index 7d5d08827914d5250028c845f85f189fcfe56467..0c81e4b50b23fba781fbc1233c2eef3ba2689500 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
@@ -80,28 +80,6 @@ PerformanceBase::PerformanceBase(double timeOrigin,
PerformanceBase::~PerformanceBase() {}
-PerformanceNavigationTiming::NavigationType PerformanceBase::getNavigationType(
- NavigationType type,
- const Document* document) {
- if (document &&
- document->pageVisibilityState() == PageVisibilityStatePrerender) {
- return PerformanceNavigationTiming::NavigationType::Prerender;
- }
- switch (type) {
- case NavigationTypeReload:
- return PerformanceNavigationTiming::NavigationType::Reload;
- case NavigationTypeBackForward:
- return PerformanceNavigationTiming::NavigationType::BackForward;
- case NavigationTypeLinkClicked:
- case NavigationTypeFormSubmitted:
- case NavigationTypeFormResubmitted:
- case NavigationTypeOther:
- return PerformanceNavigationTiming::NavigationType::Navigate;
- }
- NOTREACHED();
- return PerformanceNavigationTiming::NavigationType::Navigate;
-}
-
const AtomicString& PerformanceBase::interfaceName() const {
return EventTargetNames::Performance;
}
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBase.h ('k') | third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698