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 #undef IPC_MESSAGE_EXPORT | 76 #undef IPC_MESSAGE_EXPORT |
74 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 77 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
75 | 78 |
76 #define IPC_MESSAGE_START ChildProcessMsgStart | 79 #define IPC_MESSAGE_START ChildProcessMsgStart |
77 | 80 |
78 // Messages sent from the browser to the child process. | 81 // Messages sent from the browser to the child process. |
79 | 82 |
80 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 83 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 IPC_SYNC_MESSAGE_CONTROL2_1( | 205 IPC_SYNC_MESSAGE_CONTROL2_1( |
203 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 206 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
204 uint32 /* size */, | 207 uint32 /* size */, |
205 content::DiscardableSharedMemoryId, | 208 content::DiscardableSharedMemoryId, |
206 base::SharedMemoryHandle) | 209 base::SharedMemoryHandle) |
207 | 210 |
208 // Informs the browser that the child deleted a block of discardable shared | 211 // Informs the browser that the child deleted a block of discardable shared |
209 // memory. | 212 // memory. |
210 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 213 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
211 content::DiscardableSharedMemoryId) | 214 content::DiscardableSharedMemoryId) |
OLD | NEW |