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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 IPC_STRUCT_TRAITS_MEMBER(process_id) | 61 IPC_STRUCT_TRAITS_MEMBER(process_id) |
62 IPC_STRUCT_TRAITS_END() | 62 IPC_STRUCT_TRAITS_END() |
63 | 63 |
64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
65 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 65 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
66 | 66 |
67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
68 IPC_STRUCT_TRAITS_MEMBER(id) | 68 IPC_STRUCT_TRAITS_MEMBER(id) |
69 IPC_STRUCT_TRAITS_MEMBER(type) | 69 IPC_STRUCT_TRAITS_MEMBER(type) |
70 IPC_STRUCT_TRAITS_MEMBER(handle) | 70 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 71 IPC_STRUCT_TRAITS_MEMBER(offset) |
71 #if defined(USE_OZONE) | 72 #if defined(USE_OZONE) |
72 IPC_STRUCT_TRAITS_MEMBER(native_pixmap_handle) | 73 IPC_STRUCT_TRAITS_MEMBER(native_pixmap_handle) |
73 #endif | 74 #endif |
74 IPC_STRUCT_TRAITS_END() | 75 IPC_STRUCT_TRAITS_END() |
75 | 76 |
76 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) | 77 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) |
77 IPC_STRUCT_TRAITS_MEMBER(id) | 78 IPC_STRUCT_TRAITS_MEMBER(id) |
78 IPC_STRUCT_TRAITS_END() | 79 IPC_STRUCT_TRAITS_END() |
79 | 80 |
80 #undef IPC_MESSAGE_EXPORT | 81 #undef IPC_MESSAGE_EXPORT |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 IPC_SYNC_MESSAGE_CONTROL2_1( | 217 IPC_SYNC_MESSAGE_CONTROL2_1( |
217 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 218 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
218 uint32 /* size */, | 219 uint32 /* size */, |
219 content::DiscardableSharedMemoryId, | 220 content::DiscardableSharedMemoryId, |
220 base::SharedMemoryHandle) | 221 base::SharedMemoryHandle) |
221 | 222 |
222 // Informs the browser that the child deleted a block of discardable shared | 223 // Informs the browser that the child deleted a block of discardable shared |
223 // memory. | 224 // memory. |
224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 225 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
225 content::DiscardableSharedMemoryId) | 226 content::DiscardableSharedMemoryId) |
OLD | NEW |