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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 IPC_STRUCT_TRAITS_MEMBER(tasks) | 53 IPC_STRUCT_TRAITS_MEMBER(tasks) |
54 IPC_STRUCT_TRAITS_MEMBER(descendants) | 54 IPC_STRUCT_TRAITS_MEMBER(descendants) |
55 IPC_STRUCT_TRAITS_MEMBER(process_id) | 55 IPC_STRUCT_TRAITS_MEMBER(process_id) |
56 IPC_STRUCT_TRAITS_END() | 56 IPC_STRUCT_TRAITS_END() |
57 | 57 |
58 IPC_ENUM_TRAITS(gfx::GpuMemoryBufferType) | 58 IPC_ENUM_TRAITS(gfx::GpuMemoryBufferType) |
59 | 59 |
60 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 60 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
61 IPC_STRUCT_TRAITS_MEMBER(type) | 61 IPC_STRUCT_TRAITS_MEMBER(type) |
62 IPC_STRUCT_TRAITS_MEMBER(handle) | 62 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 63 #if defined(OS_MACOSX) |
| 64 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) |
| 65 #endif |
63 IPC_STRUCT_TRAITS_END() | 66 IPC_STRUCT_TRAITS_END() |
64 | 67 |
65 #undef IPC_MESSAGE_EXPORT | 68 #undef IPC_MESSAGE_EXPORT |
66 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 69 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
67 | 70 |
68 #define IPC_MESSAGE_START ChildProcessMsgStart | 71 #define IPC_MESSAGE_START ChildProcessMsgStart |
69 | 72 |
70 // Messages sent from the browser to the child process. | 73 // Messages sent from the browser to the child process. |
71 | 74 |
72 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 75 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 uint32 /* buffer size */, | 144 uint32 /* buffer size */, |
142 base::SharedMemoryHandle) | 145 base::SharedMemoryHandle) |
143 | 146 |
144 #if defined(USE_TCMALLOC) | 147 #if defined(USE_TCMALLOC) |
145 // Reply to ChildProcessMsg_GetTcmallocStats. | 148 // Reply to ChildProcessMsg_GetTcmallocStats. |
146 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 149 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
147 std::string /* output */) | 150 std::string /* output */) |
148 #endif | 151 #endif |
149 | 152 |
150 // Asks the browser to create a gpu memory buffer. | 153 // Asks the browser to create a gpu memory buffer. |
151 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 154 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
152 uint32 /* buffer size */, | 155 uint32 /* width */, |
| 156 uint32 /* height */, |
| 157 uint32 /* internalformat */, |
153 gfx::GpuMemoryBufferHandle) | 158 gfx::GpuMemoryBufferHandle) |
OLD | NEW |