OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Common IPC messages used for child processes. | 5 // Common IPC messages used for child processes. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 int /* shm_size */) | 116 int /* shm_size */) |
117 | 117 |
118 // Send to all the child processes to send back histogram data. | 118 // Send to all the child processes to send back histogram data. |
119 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, | 119 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, |
120 int /* sequence_number */) | 120 int /* sequence_number */) |
121 | 121 |
122 // Sent to child processes to tell them to enter or leave background mode. | 122 // Sent to child processes to tell them to enter or leave background mode. |
123 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 123 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
124 bool /* background */) | 124 bool /* background */) |
125 | 125 |
126 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetAudioPlaying, | |
Sami
2016/09/29 13:36:07
bikeshed: SetProcessAudible would make it a little
altimin
2016/09/29 16:29:42
Done.
| |
127 bool /* has_audio_playing */) | |
128 | |
126 // Sent to child processes to tell them to purge and suspend. | 129 // Sent to child processes to tell them to purge and suspend. |
127 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) | 130 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) |
128 | 131 |
129 //////////////////////////////////////////////////////////////////////////////// | 132 //////////////////////////////////////////////////////////////////////////////// |
130 // Messages sent from the child process to the browser. | 133 // Messages sent from the child process to the browser. |
131 | 134 |
132 // A renderer sends this when it wants to create a connection to the GPU | 135 // A renderer sends this when it wants to create a connection to the GPU |
133 // process. The browser will create the GPU process if necessary, and will | 136 // process. The browser will create the GPU process if necessary, and will |
134 // return a handle to the channel via a GpuChannelEstablished message. | 137 // return a handle to the channel via a GpuChannelEstablished message. |
135 IPC_SYNC_MESSAGE_CONTROL0_3(ChildProcessHostMsg_EstablishGpuChannel, | 138 IPC_SYNC_MESSAGE_CONTROL0_3(ChildProcessHostMsg_EstablishGpuChannel, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 // memory. | 223 // memory. |
221 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
222 content::DiscardableSharedMemoryId) | 225 content::DiscardableSharedMemoryId) |
223 | 226 |
224 #if defined(OS_LINUX) | 227 #if defined(OS_LINUX) |
225 // Asks the browser to change the priority of thread. | 228 // Asks the browser to change the priority of thread. |
226 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 229 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
227 base::PlatformThreadId, | 230 base::PlatformThreadId, |
228 base::ThreadPriority) | 231 base::ThreadPriority) |
229 #endif | 232 #endif |
OLD | NEW |