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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | 118 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) |
119 #endif | 119 #endif |
120 | 120 |
121 #if defined(OS_MACOSX) | 121 #if defined(OS_MACOSX) |
122 // Sent to child processes to tell them what token to use when registering | 122 // Sent to child processes to tell them what token to use when registering |
123 // and/or acquiring IOSurfaces. | 123 // and/or acquiring IOSurfaces. |
124 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, | 124 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, |
125 content::IOSurfaceManagerToken /* token */) | 125 content::IOSurfaceManagerToken /* token */) |
126 #endif | 126 #endif |
127 | 127 |
| 128 #if defined(USE_OZONE) |
| 129 // Sent ClientNativePixmap device file descriptor to child processes to |
| 130 // initialize ClientNativePixmapFactory. |
| 131 IPC_MESSAGE_CONTROL1(ChildProcessMsg_InitializeClientNativePixmapFactory, |
| 132 base::FileDescriptor /* device_fd */) |
| 133 #endif |
128 //////////////////////////////////////////////////////////////////////////////// | 134 //////////////////////////////////////////////////////////////////////////////// |
129 // Messages sent from the child process to the browser. | 135 // Messages sent from the child process to the browser. |
130 | 136 |
131 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 137 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
132 | 138 |
133 // Send back profiler data (ThreadData in tracked_objects). | 139 // Send back profiler data (ThreadData in tracked_objects). |
134 IPC_MESSAGE_CONTROL2( | 140 IPC_MESSAGE_CONTROL2( |
135 ChildProcessHostMsg_ChildProfilerData, | 141 ChildProcessHostMsg_ChildProfilerData, |
136 int, /* sequence_number */ | 142 int, /* sequence_number */ |
137 tracked_objects::ProcessDataSnapshot /* process_data_snapshot */) | 143 tracked_objects::ProcessDataSnapshot /* process_data_snapshot */) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 IPC_SYNC_MESSAGE_CONTROL2_1( | 211 IPC_SYNC_MESSAGE_CONTROL2_1( |
206 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 212 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
207 uint32 /* size */, | 213 uint32 /* size */, |
208 content::DiscardableSharedMemoryId, | 214 content::DiscardableSharedMemoryId, |
209 base::SharedMemoryHandle) | 215 base::SharedMemoryHandle) |
210 | 216 |
211 // Informs the browser that the child deleted a block of discardable shared | 217 // Informs the browser that the child deleted a block of discardable shared |
212 // memory. | 218 // memory. |
213 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 219 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
214 content::DiscardableSharedMemoryId) | 220 content::DiscardableSharedMemoryId) |
OLD | NEW |