| 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. |
| 179 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, | 185 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, |
| 180 uint32_t /* buffer size */, | 186 uint32_t /* buffer size */, |
| 181 cc::SharedBitmapId, | 187 cc::SharedBitmapId, |
| 182 base::SharedMemoryHandle) | 188 base::SharedMemoryHandle) |
| 183 | 189 |
| 184 // Informs the browser that the child allocated a shared bitmap. | 190 // Informs the browser that the child allocated a shared bitmap. |
| 185 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, | 191 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, |
| 186 uint32_t /* buffer size */, | 192 uint32_t /* buffer size */, |
| 187 base::SharedMemoryHandle, | 193 base::SharedMemoryHandle, |
| 188 cc::SharedBitmapId) | 194 cc::SharedBitmapId) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 217 // memory. | 223 // memory. |
| 218 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
| 219 discardable_memory::DiscardableSharedMemoryId) | 225 discardable_memory::DiscardableSharedMemoryId) |
| 220 | 226 |
| 221 #if defined(OS_LINUX) | 227 #if defined(OS_LINUX) |
| 222 // Asks the browser to change the priority of thread. | 228 // Asks the browser to change the priority of thread. |
| 223 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 229 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 224 base::PlatformThreadId, | 230 base::PlatformThreadId, |
| 225 base::ThreadPriority) | 231 base::ThreadPriority) |
| 226 #endif | 232 #endif |
| OLD | NEW |