| 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 |
| 11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 12 #include "base/tracked_objects.h" | 12 #include "base/tracked_objects.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "cc/resources/shared_bitmap_manager.h" | 14 #include "cc/resources/shared_bitmap_manager.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/host_discardable_shared_memory_manager.h" | 16 #include "content/common/host_discardable_shared_memory_manager.h" |
| 17 #include "gpu/command_buffer/common/sync_token.h" | 17 #include "gpu/command_buffer/common/sync_token.h" |
| 18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 19 #include "ipc/ipc_platform_file.h" |
| 19 #include "ui/gfx/gpu_memory_buffer.h" | 20 #include "ui/gfx/gpu_memory_buffer.h" |
| 20 #include "ui/gfx/ipc/gfx_param_traits.h" | 21 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 21 | 22 |
| 22 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
| 23 #include "content/common/mac/io_surface_manager_token.h" | 24 #include "content/common/mac/io_surface_manager_token.h" |
| 24 #endif | 25 #endif |
| 25 | 26 |
| 26 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status, | 27 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status, |
| 27 tracked_objects::ThreadData::STATUS_LAST) | 28 tracked_objects::ThreadData::STATUS_LAST) |
| 28 | 29 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | 126 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) |
| 126 #endif | 127 #endif |
| 127 | 128 |
| 128 #if defined(OS_MACOSX) | 129 #if defined(OS_MACOSX) |
| 129 // Sent to child processes to tell them what token to use when registering | 130 // Sent to child processes to tell them what token to use when registering |
| 130 // and/or acquiring IOSurfaces. | 131 // and/or acquiring IOSurfaces. |
| 131 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, | 132 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIOSurfaceManagerToken, |
| 132 content::IOSurfaceManagerToken /* token */) | 133 content::IOSurfaceManagerToken /* token */) |
| 133 #endif | 134 #endif |
| 134 | 135 |
| 136 #if defined(OS_WIN) |
| 137 // Sends a pipe used by the child process to broker passing of Mojo handles. |
| 138 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, |
| 139 IPC::PlatformFileForTransit /* handle */) |
| 140 #endif |
| 141 |
| 135 #if defined(USE_OZONE) | 142 #if defined(USE_OZONE) |
| 136 // Sent to child processes to initialize ClientNativePixmapFactory using | 143 // Sent to child processes to initialize ClientNativePixmapFactory using |
| 137 // a device file descriptor. | 144 // a device file descriptor. |
| 138 IPC_MESSAGE_CONTROL1(ChildProcessMsg_InitializeClientNativePixmapFactory, | 145 IPC_MESSAGE_CONTROL1(ChildProcessMsg_InitializeClientNativePixmapFactory, |
| 139 base::FileDescriptor /* device_fd */) | 146 base::FileDescriptor /* device_fd */) |
| 140 #endif | 147 #endif |
| 141 //////////////////////////////////////////////////////////////////////////////// | 148 //////////////////////////////////////////////////////////////////////////////// |
| 142 // Messages sent from the child process to the browser. | 149 // Messages sent from the child process to the browser. |
| 143 | 150 |
| 144 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 151 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 IPC_SYNC_MESSAGE_CONTROL2_1( | 226 IPC_SYNC_MESSAGE_CONTROL2_1( |
| 220 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 227 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
| 221 uint32 /* size */, | 228 uint32 /* size */, |
| 222 content::DiscardableSharedMemoryId, | 229 content::DiscardableSharedMemoryId, |
| 223 base::SharedMemoryHandle) | 230 base::SharedMemoryHandle) |
| 224 | 231 |
| 225 // Informs the browser that the child deleted a block of discardable shared | 232 // Informs the browser that the child deleted a block of discardable shared |
| 226 // memory. | 233 // memory. |
| 227 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 234 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
| 228 content::DiscardableSharedMemoryId) | 235 content::DiscardableSharedMemoryId) |
| OLD | NEW |