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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 int /* shm_size */) | 111 int /* shm_size */) |
112 | 112 |
113 // Send to all the child processes to send back histogram data. | 113 // Send to all the child processes to send back histogram data. |
114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, | 114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, |
115 int /* sequence_number */) | 115 int /* sequence_number */) |
116 | 116 |
117 // Sent to child processes to tell them to enter or leave background mode. | 117 // Sent to child processes to tell them to enter or leave background mode. |
118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
119 bool /* background */) | 119 bool /* background */) |
120 | 120 |
| 121 // Sent to child processes to tell them to purge and suspend. |
| 122 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) |
| 123 |
121 //////////////////////////////////////////////////////////////////////////////// | 124 //////////////////////////////////////////////////////////////////////////////// |
122 // Messages sent from the child process to the browser. | 125 // Messages sent from the child process to the browser. |
123 | 126 |
124 // A renderer sends this when it wants to create a connection to the GPU | 127 // A renderer sends this when it wants to create a connection to the GPU |
125 // process. The browser will create the GPU process if necessary, and will | 128 // process. The browser will create the GPU process if necessary, and will |
126 // return a handle to the channel via a GpuChannelEstablished message. | 129 // return a handle to the channel via a GpuChannelEstablished message. |
127 IPC_SYNC_MESSAGE_CONTROL1_3(ChildProcessHostMsg_EstablishGpuChannel, | 130 IPC_SYNC_MESSAGE_CONTROL1_3(ChildProcessHostMsg_EstablishGpuChannel, |
128 content::CauseForGpuLaunch, | 131 content::CauseForGpuLaunch, |
129 int /* client id */, | 132 int /* client id */, |
130 IPC::ChannelHandle /* handle to channel */, | 133 IPC::ChannelHandle /* handle to channel */, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 IPC_SYNC_MESSAGE_CONTROL2_1( | 209 IPC_SYNC_MESSAGE_CONTROL2_1( |
207 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 210 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
208 uint32_t /* size */, | 211 uint32_t /* size */, |
209 content::DiscardableSharedMemoryId, | 212 content::DiscardableSharedMemoryId, |
210 base::SharedMemoryHandle) | 213 base::SharedMemoryHandle) |
211 | 214 |
212 // Informs the browser that the child deleted a block of discardable shared | 215 // Informs the browser that the child deleted a block of discardable shared |
213 // memory. | 216 // memory. |
214 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 217 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
215 content::DiscardableSharedMemoryId) | 218 content::DiscardableSharedMemoryId) |
OLD | NEW |