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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2411863002: [NoStatePrefetch] Kill renderer after preload scanning (Closed)
Patch Set: Created 4 years, 2 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index adfb661b8196faf2677ef9efd8615914b352df66..b45b5d231ae23d8e9151de9f15e7916f777ae11c 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1427,6 +1427,16 @@ bool Document::isPrefetchOnly() const {
return prerendererClient && prerendererClient->isPrefetchOnly();
}
+void Document::onPrefetchFinished() const {
+ if (!m_frame || !m_frame->page())
+ return;
+ PrerendererClient* prerendererClient =
+ PrerendererClient::from(m_frame->page());
+ if (!prerendererClient)
+ return;
+ prerendererClient->onPrefetchFinished();
+}
+
String Document::visibilityState() const {
return pageVisibilityStateString(pageVisibilityState());
}

Powered by Google App Engine
This is Rietveld 408576698