| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 #if defined(OS_WIN) | 172 #if defined(OS_WIN) |
| 173 // Request that the given font be loaded by the host so it's cached by the | 173 // Request that the given font be loaded by the host so it's cached by the |
| 174 // OS. Please see ChildProcessHost::PreCacheFont for details. | 174 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 175 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 175 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
| 176 LOGFONT /* font data */) | 176 LOGFONT /* font data */) |
| 177 | 177 |
| 178 // Release the cached font | 178 // Release the cached font |
| 179 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 179 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 180 #endif // defined(OS_WIN) | 180 #endif // defined(OS_WIN) |
| 181 | 181 |
| 182 // Asks the browser to create a block of shared memory for the child process to | |
| 183 // fill in and pass back to the browser. | |
| 184 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, | |
| 185 uint32_t /* buffer size */, | |
| 186 cc::SharedBitmapId, | |
| 187 base::SharedMemoryHandle) | |
| 188 | |
| 189 // Informs the browser that the child allocated a shared bitmap. | |
| 190 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, | |
| 191 uint32_t /* buffer size */, | |
| 192 base::SharedMemoryHandle, | |
| 193 cc::SharedBitmapId) | |
| 194 | |
| 195 // Informs the browser that the child deleted a shared bitmap. | |
| 196 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, | |
| 197 cc::SharedBitmapId) | |
| 198 | |
| 199 // Asks the browser to create a gpu memory buffer. | 182 // Asks the browser to create a gpu memory buffer. |
| 200 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 183 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
| 201 gfx::GpuMemoryBufferId /* new_id */, | 184 gfx::GpuMemoryBufferId /* new_id */, |
| 202 uint32_t /* width */, | 185 uint32_t /* width */, |
| 203 uint32_t /* height */, | 186 uint32_t /* height */, |
| 204 gfx::BufferFormat, | 187 gfx::BufferFormat, |
| 205 gfx::BufferUsage, | 188 gfx::BufferUsage, |
| 206 gfx::GpuMemoryBufferHandle) | 189 gfx::GpuMemoryBufferHandle) |
| 207 | 190 |
| 208 // Informs the browser that the child deleted a gpu memory buffer. | 191 // Informs the browser that the child deleted a gpu memory buffer. |
| 209 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 192 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
| 210 gfx::GpuMemoryBufferId, | 193 gfx::GpuMemoryBufferId, |
| 211 gpu::SyncToken /* sync_token */) | 194 gpu::SyncToken /* sync_token */) |
| 212 | 195 |
| 213 #if defined(OS_LINUX) | 196 #if defined(OS_LINUX) |
| 214 // Asks the browser to change the priority of thread. | 197 // Asks the browser to change the priority of thread. |
| 215 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 198 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 216 base::PlatformThreadId, | 199 base::PlatformThreadId, |
| 217 base::ThreadPriority) | 200 base::ThreadPriority) |
| 218 #endif | 201 #endif |
| OLD | NEW |