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

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

Issue 2455653005: Revert "Revert of [NoStatePrefetch] Kill renderer after preload scanning (patchset #12 id:240001 of… (Closed)
Patch Set: rebased 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 4ae8ed5733835bdae2077a919bed1922114b91fc..324caf8eb8f7de97b3dda5d1b10fbd2ae0668579 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -242,6 +242,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebAddressSpace.h"
#include "public/platform/WebFrameScheduler.h"
+#include "public/platform/WebPrerenderingSupport.h"
#include "public/platform/WebScheduler.h"
#include "wtf/AutoReset.h"
#include "wtf/CurrentTime.h"
@@ -5138,6 +5139,9 @@ void Document::finishedParsing() {
// Parser should have picked up all preloads by now
m_fetcher->clearPreloads(ResourceFetcher::ClearSpeculativeMarkupPreloads);
+
+ if (isPrefetchOnly())
+ WebPrerenderingSupport::current()->prefetchFinished();
}
void Document::elementDataCacheClearTimerFired(TimerBase*) {
« no previous file with comments | « chrome/renderer/prerender/prerender_dispatcher.cc ('k') | third_party/WebKit/Source/web/tests/PrerenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698