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

Unified Diff: content/child/child_thread_impl.cc

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Added transition: => RUNNING 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/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index e166b19fa9c482f7dcd271540b6e71976f831819..99fd993a57dbce313c38b10c5bce84383c2d2ef1 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -748,6 +748,7 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
OnProcessBackgrounded)
IPC_MESSAGE_HANDLER(ChildProcessMsg_PurgeAndSuspend,
OnProcessPurgeAndSuspend)
+ IPC_MESSAGE_HANDLER(ChildProcessMsg_Resume, OnProcessResume)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -780,6 +781,8 @@ void ChildThreadImpl::OnProcessBackgrounded(bool backgrounded) {
void ChildThreadImpl::OnProcessPurgeAndSuspend() {
}
+void ChildThreadImpl::OnProcessResume() {}
+
void ChildThreadImpl::OnShutdown() {
base::MessageLoop::current()->QuitWhenIdle();
}

Powered by Google App Engine
This is Rietveld 408576698