| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // OS. Please see ChildProcessHost::PreCacheFont for details. | 169 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 170 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 170 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
| 171 LOGFONT /* font data */) | 171 LOGFONT /* font data */) |
| 172 | 172 |
| 173 // Release the cached font | 173 // Release the cached font |
| 174 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 174 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 175 #endif // defined(OS_WIN) | 175 #endif // defined(OS_WIN) |
| 176 | 176 |
| 177 // Asks the browser to create a block of shared memory for the child process to | 177 // Asks the browser to create a block of shared memory for the child process to |
| 178 // fill in and pass back to the browser. | 178 // fill in and pass back to the browser. |
| 179 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | |
| 180 uint32_t /* buffer size */, | |
| 181 base::SharedMemoryHandle) | |
| 182 | |
| 183 // Asks the browser to create a block of shared memory for the child process to | |
| 184 // fill in and pass back to the browser. | |
| 185 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, | 179 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, |
| 186 uint32_t /* buffer size */, | 180 uint32_t /* buffer size */, |
| 187 cc::SharedBitmapId, | 181 cc::SharedBitmapId, |
| 188 base::SharedMemoryHandle) | 182 base::SharedMemoryHandle) |
| 189 | 183 |
| 190 // Informs the browser that the child allocated a shared bitmap. | 184 // Informs the browser that the child allocated a shared bitmap. |
| 191 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, | 185 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, |
| 192 uint32_t /* buffer size */, | 186 uint32_t /* buffer size */, |
| 193 base::SharedMemoryHandle, | 187 base::SharedMemoryHandle, |
| 194 cc::SharedBitmapId) | 188 cc::SharedBitmapId) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 223 // memory. | 217 // memory. |
| 224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 218 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
| 225 discardable_memory::DiscardableSharedMemoryId) | 219 discardable_memory::DiscardableSharedMemoryId) |
| 226 | 220 |
| 227 #if defined(OS_LINUX) | 221 #if defined(OS_LINUX) |
| 228 // Asks the browser to change the priority of thread. | 222 // Asks the browser to change the priority of thread. |
| 229 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 223 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 230 base::PlatformThreadId, | 224 base::PlatformThreadId, |
| 231 base::ThreadPriority) | 225 base::ThreadPriority) |
| 232 #endif | 226 #endif |
| OLD | NEW |