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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 int /* profiling_phase */) | 114 int /* profiling_phase */) |
115 | 115 |
116 // Send to all the child processes to send back histogram data. | 116 // Send to all the child processes to send back histogram data. |
117 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, | 117 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, |
118 int /* sequence_number */) | 118 int /* sequence_number */) |
119 | 119 |
120 // Sent to child processes to tell them to enter or leave background mode. | 120 // Sent to child processes to tell them to enter or leave background mode. |
121 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 121 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
122 bool /* background */) | 122 bool /* background */) |
123 | 123 |
124 #if defined(USE_TCMALLOC) | |
125 // Sent to child process to request tcmalloc stats. | |
126 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | |
127 #endif | |
128 | |
129 #if defined(OS_MACOSX) | 124 #if defined(OS_MACOSX) |
130 // Sent to child processes to tell them what token to use when registering | 125 // Sent to child processes to tell them what token to use when registering |
131 // and/or acquiring IOSurfaces. | 126 // and/or acquiring IOSurfaces. |
132 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, | 127 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, |
133 content::IOSurfaceManagerToken /* token */) | 128 content::IOSurfaceManagerToken /* token */) |
134 #endif | 129 #endif |
135 | 130 |
136 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
137 // Sends a pipe used by the child process to broker passing of Mojo handles. | 132 // Sends a pipe used by the child process to broker passing of Mojo handles. |
138 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, | 133 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Informs the browser that the child allocated a shared bitmap. | 189 // Informs the browser that the child allocated a shared bitmap. |
195 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, | 190 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, |
196 uint32 /* buffer size */, | 191 uint32 /* buffer size */, |
197 base::SharedMemoryHandle, | 192 base::SharedMemoryHandle, |
198 cc::SharedBitmapId) | 193 cc::SharedBitmapId) |
199 | 194 |
200 // Informs the browser that the child deleted a shared bitmap. | 195 // Informs the browser that the child deleted a shared bitmap. |
201 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, | 196 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, |
202 cc::SharedBitmapId) | 197 cc::SharedBitmapId) |
203 | 198 |
204 #if defined(USE_TCMALLOC) | |
205 // Reply to ChildProcessMsg_GetTcmallocStats. | |
206 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | |
207 std::string /* output */) | |
208 #endif | |
209 | |
210 // Asks the browser to create a gpu memory buffer. | 199 // Asks the browser to create a gpu memory buffer. |
211 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 200 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
212 gfx::GpuMemoryBufferId /* new_id */, | 201 gfx::GpuMemoryBufferId /* new_id */, |
213 uint32 /* width */, | 202 uint32 /* width */, |
214 uint32 /* height */, | 203 uint32 /* height */, |
215 gfx::BufferFormat, | 204 gfx::BufferFormat, |
216 gfx::BufferUsage, | 205 gfx::BufferUsage, |
217 gfx::GpuMemoryBufferHandle) | 206 gfx::GpuMemoryBufferHandle) |
218 | 207 |
219 // Informs the browser that the child deleted a gpu memory buffer. | 208 // Informs the browser that the child deleted a gpu memory buffer. |
220 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 209 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
221 gfx::GpuMemoryBufferId, | 210 gfx::GpuMemoryBufferId, |
222 gpu::SyncToken /* sync_token */) | 211 gpu::SyncToken /* sync_token */) |
223 | 212 |
224 // Asks the browser to create a block of discardable shared memory for the | 213 // Asks the browser to create a block of discardable shared memory for the |
225 // child process. | 214 // child process. |
226 IPC_SYNC_MESSAGE_CONTROL2_1( | 215 IPC_SYNC_MESSAGE_CONTROL2_1( |
227 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 216 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
228 uint32 /* size */, | 217 uint32 /* size */, |
229 content::DiscardableSharedMemoryId, | 218 content::DiscardableSharedMemoryId, |
230 base::SharedMemoryHandle) | 219 base::SharedMemoryHandle) |
231 | 220 |
232 // Informs the browser that the child deleted a block of discardable shared | 221 // Informs the browser that the child deleted a block of discardable shared |
233 // memory. | 222 // memory. |
234 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 223 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
235 content::DiscardableSharedMemoryId) | 224 content::DiscardableSharedMemoryId) |
OLD | NEW |