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

Unified Diff: content/child/child_thread_impl.cc

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on dcheng@'s review Created 4 years, 7 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 b7aa75e4f8fb60c830c520f87e932987936424c7..00ee6108a4e75ae0c84a49b04c5ad80e0647acfc 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_PurgeAndSuspend,
+ OnProcessPurgeAndSuspend)
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::OnProcessPurgeAndSuspend() {
+}
+
void ChildThreadImpl::OnShutdown() {
base::MessageLoop::current()->QuitWhenIdle();
}

Powered by Google App Engine
This is Rietveld 408576698