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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 0aa3d6020fd4c9d7784408e14a5807d5ea6e0aa0..183fe971769c8dc04d0f3d71ca7e31689dc6b0af 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1996,6 +1996,7 @@ bool RenderProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
OnUserMetricsRecordAction)
IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_PrefetchFinished, OnPrefetchFinished)
#if defined(ENABLE_WEBRTC)
IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer,
OnRegisterAecDumpConsumer)
@@ -2025,6 +2026,11 @@ bool RenderProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
return listener->OnMessageReceived(msg);
}
+void RenderProcessHostImpl::OnPrefetchFinished() {
+ FOR_EACH_OBSERVER(RenderProcessHostObserver, observers_,
+ RenderProcessHostPrefetchFinished(this));
+}
+
void RenderProcessHostImpl::OnChannelConnected(int32_t peer_pid) {
channel_connected_ = true;
if (IsReady()) {

Powered by Google App Engine
This is Rietveld 408576698