summaryrefslogtreecommitdiffstats
path: root/content/common/child_process_messages.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-05 19:36:20 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-05 19:36:20 +0000
commit57cd3d24748da3060fa42b70979a4c0390139ba1 (patch)
treeab2984c37a500b24e5adfebbb9dc95dc25875574 /content/common/child_process_messages.h
parent95218f20e3d6d5214857076ecd0c2e6e89f3669e (diff)
downloadchromium_src-57cd3d24748da3060fa42b70979a4c0390139ba1.zip
chromium_src-57cd3d24748da3060fa42b70979a4c0390139ba1.tar.gz
chromium_src-57cd3d24748da3060fa42b70979a4c0390139ba1.tar.bz2
[Mac] Maximise timer slack for background tabs
When a tab not playing audio is sent to the background, set timer slack to its maximum value. Support for setting timer slack is added at the MessageLoop level, the concrete implementation of this CL only affects CFMessagePump backed MessageLoops (which means just the main thread for backgrounded renderer processes at present). The MessageLoop implementation is designed to support its use on Windows and Linux (the Windows API sets slack per-timer like the Mac one, while on Linux slack, is set per-thread via a call to prctl() using PR_SET_TIMERSLACK). BUG=356804 Review URL: https://codereview.chromium.org/289863005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/child_process_messages.h')
-rw-r--r--content/common/child_process_messages.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
index 67191fc..da76e02 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -111,11 +111,9 @@ IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData,
// Sent to child processes to dump their handle table.
IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles)
-#if defined(OS_WIN)
// Sent to child processes to tell them to enter or leave background mode.
IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded,
bool /* background */)
-#endif
#if defined(USE_TCMALLOC)
// Sent to child process to request tcmalloc stats.