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

Unified Diff: content/child/child_thread_impl.cc

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time 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: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index d3f45dfc80278bc47ad19b6d3fcb3444f4e41f4d..7e2346f52be69671bd364d4a87ae7919d300954e 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -637,6 +637,8 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
OnProfilingPhaseCompleted)
IPC_MESSAGE_HANDLER(ChildProcessMsg_SetProcessBackgrounded,
OnProcessBackgrounded)
+ IPC_MESSAGE_HANDLER(ChildProcessMsg_Suspend,
+ OnProcessSuspend)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -661,6 +663,9 @@ void ChildThreadImpl::OnProcessBackgrounded(bool backgrounded) {
base::MessageLoop::current()->SetTimerSlack(timer_slack);
}
+void ChildThreadImpl::OnProcessSuspend() {
+}
+
void ChildThreadImpl::OnShutdown() {
base::MessageLoop::current()->QuitWhenIdle();
}

Powered by Google App Engine
This is Rietveld 408576698