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

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: Change null enum name 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..ab8ed64bea1230c09bedbd921183f186850f0186 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(WebLoadingData data)
+{
+ if (frame() && frame()->isMainFrame() && m_state >= Committed) {
+ frameLoader()->client()->didObserveLoadingBehavior(data);
+ }
+}
+
void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDocumentNavigationSource sameDocumentNavigationSource)
{
KURL oldURL = m_request.url();

Powered by Google App Engine
This is Rietveld 408576698