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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments from self review Created 4 years, 8 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/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index e9498218cf2fbbd83ea56c8714a1b73c3f1ba69c..8a2f7991a5de227e8a33673e17cd4cfcfdb2380b 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -210,6 +210,13 @@ void DocumentLoader::didChangePerformanceTiming()
}
}
+void DocumentLoader::didObserveLoadingBehavior(WebLoadingBehaviorFlag behavior)
+{
+ if (frame() && frame()->isMainFrame() && m_state >= Committed) {
Nate Chapin 2016/04/07 16:13:10 ASSERT(m_state >= Committed). If there's a Docume
Charlie Harrison 2016/04/07 17:42:16 Done.
+ frameLoader()->client()->didObserveLoadingBehavior(behavior);
+ }
+}
+
void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDocumentNavigationSource sameDocumentNavigationSource)
{
KURL oldURL = m_request.url();

Powered by Google App Engine
This is Rietveld 408576698