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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
62 | 62 |
63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
64 IPC_STRUCT_TRAITS_MEMBER(type) | 64 IPC_STRUCT_TRAITS_MEMBER(type) |
65 IPC_STRUCT_TRAITS_MEMBER(handle) | 65 IPC_STRUCT_TRAITS_MEMBER(handle) |
66 #if defined(OS_MACOSX) | 66 #if defined(OS_MACOSX) |
67 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) | 67 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) |
68 #endif | 68 #endif |
| 69 IPC_STRUCT_TRAITS_MEMBER(foobar_id) |
69 IPC_STRUCT_TRAITS_END() | 70 IPC_STRUCT_TRAITS_END() |
70 | 71 |
71 #undef IPC_MESSAGE_EXPORT | 72 #undef IPC_MESSAGE_EXPORT |
72 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 73 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
73 | 74 |
74 #define IPC_MESSAGE_START ChildProcessMsgStart | 75 #define IPC_MESSAGE_START ChildProcessMsgStart |
75 | 76 |
76 // Messages sent from the browser to the child process. | 77 // Messages sent from the browser to the child process. |
77 | 78 |
78 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 79 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 170 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
170 std::string /* output */) | 171 std::string /* output */) |
171 #endif | 172 #endif |
172 | 173 |
173 // Asks the browser to create a gpu memory buffer. | 174 // Asks the browser to create a gpu memory buffer. |
174 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 175 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
175 uint32 /* width */, | 176 uint32 /* width */, |
176 uint32 /* height */, | 177 uint32 /* height */, |
177 uint32 /* internalformat */, | 178 uint32 /* internalformat */, |
178 gfx::GpuMemoryBufferHandle) | 179 gfx::GpuMemoryBufferHandle) |
OLD | NEW |