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

Unified Diff: content/child/child_thread_impl.cc

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Created 4 years, 3 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 26a2c454d5a5cd2f55da9ced967fd1534bc17ab9..86eafc934c119326e5188daeeace812b8cda8a9f 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -780,6 +780,7 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
OnProfilingPhaseCompleted)
IPC_MESSAGE_HANDLER(ChildProcessMsg_SetProcessBackgrounded,
OnProcessBackgrounded)
+ IPC_MESSAGE_HANDLER(ChildProcessMsg_SetAudioPlaying, OnAudioStateChanged)
IPC_MESSAGE_HANDLER(ChildProcessMsg_PurgeAndSuspend,
OnProcessPurgeAndSuspend)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -811,6 +812,8 @@ void ChildThreadImpl::OnProcessBackgrounded(bool backgrounded) {
base::MessageLoop::current()->SetTimerSlack(timer_slack);
}
+void ChildThreadImpl::OnAudioStateChanged(bool has_active_audio) {}
+
void ChildThreadImpl::OnProcessPurgeAndSuspend() {
}

Powered by Google App Engine
This is Rietveld 408576698