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 #if defined(USE_OZONE) |
| 72 IPC_STRUCT_TRAITS_MEMBER(native_pixmap_handle) |
| 73 #endif |
71 IPC_STRUCT_TRAITS_END() | 74 IPC_STRUCT_TRAITS_END() |
72 | 75 |
73 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) | 76 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) |
74 IPC_STRUCT_TRAITS_MEMBER(id) | 77 IPC_STRUCT_TRAITS_MEMBER(id) |
75 IPC_STRUCT_TRAITS_END() | 78 IPC_STRUCT_TRAITS_END() |
76 | 79 |
77 #undef IPC_MESSAGE_EXPORT | 80 #undef IPC_MESSAGE_EXPORT |
78 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
79 | 82 |
80 #define IPC_MESSAGE_START ChildProcessMsgStart | 83 #define IPC_MESSAGE_START ChildProcessMsgStart |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 IPC_SYNC_MESSAGE_CONTROL2_1( | 210 IPC_SYNC_MESSAGE_CONTROL2_1( |
208 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 211 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
209 uint32 /* size */, | 212 uint32 /* size */, |
210 content::DiscardableSharedMemoryId, | 213 content::DiscardableSharedMemoryId, |
211 base::SharedMemoryHandle) | 214 base::SharedMemoryHandle) |
212 | 215 |
213 // Informs the browser that the child deleted a block of discardable shared | 216 // Informs the browser that the child deleted a block of discardable shared |
214 // memory. | 217 // memory. |
215 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 218 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
216 content::DiscardableSharedMemoryId) | 219 content::DiscardableSharedMemoryId) |
OLD | NEW |