| 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 "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 15 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 16 #include "ui/gfx/gpu_memory_buffer.h" | 17 #include "ui/gfx/gpu_memory_buffer.h" |
| 17 | 18 |
| 18 IPC_ENUM_TRAITS(tracked_objects::ThreadData::Status) | 19 IPC_ENUM_TRAITS(tracked_objects::ThreadData::Status) |
| 19 | 20 |
| 20 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot) | 21 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot) |
| 21 IPC_STRUCT_TRAITS_MEMBER(file_name) | 22 IPC_STRUCT_TRAITS_MEMBER(file_name) |
| 22 IPC_STRUCT_TRAITS_MEMBER(function_name) | 23 IPC_STRUCT_TRAITS_MEMBER(function_name) |
| 23 IPC_STRUCT_TRAITS_MEMBER(line_number) | 24 IPC_STRUCT_TRAITS_MEMBER(line_number) |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Release the cached font | 138 // Release the cached font |
| 138 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 139 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 139 #endif // defined(OS_WIN) | 140 #endif // defined(OS_WIN) |
| 140 | 141 |
| 141 // Asks the browser to create a block of shared memory for the child process to | 142 // Asks the browser to create a block of shared memory for the child process to |
| 142 // fill in and pass back to the browser. | 143 // fill in and pass back to the browser. |
| 143 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | 144 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
| 144 uint32 /* buffer size */, | 145 uint32 /* buffer size */, |
| 145 base::SharedMemoryHandle) | 146 base::SharedMemoryHandle) |
| 146 | 147 |
| 148 // Asks the browser to create a block of shared memory for the child process to |
| 149 // fill in and pass back to the browser. |
| 150 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, |
| 151 uint32 /* buffer size */, |
| 152 cc::SharedBitmapId, |
| 153 base::SharedMemoryHandle) |
| 154 |
| 155 // Informs the browser that the child allocated a shared bitmap. |
| 156 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_AllocatedSharedBitmap, |
| 157 base::SharedMemoryHandle, |
| 158 cc::SharedBitmapId) |
| 159 |
| 160 // Informs the browser that the child deleted a shared bitmap. |
| 161 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, |
| 162 cc::SharedBitmapId) |
| 163 |
| 147 #if defined(USE_TCMALLOC) | 164 #if defined(USE_TCMALLOC) |
| 148 // Reply to ChildProcessMsg_GetTcmallocStats. | 165 // Reply to ChildProcessMsg_GetTcmallocStats. |
| 149 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 166 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
| 150 std::string /* output */) | 167 std::string /* output */) |
| 151 #endif | 168 #endif |
| 152 | 169 |
| 153 // Asks the browser to create a gpu memory buffer. | 170 // Asks the browser to create a gpu memory buffer. |
| 154 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 171 IPC_SYNC_MESSAGE_CONTROL3_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
| 155 uint32 /* width */, | 172 uint32 /* width */, |
| 156 uint32 /* height */, | 173 uint32 /* height */, |
| 157 uint32 /* internalformat */, | 174 uint32 /* internalformat */, |
| 158 gfx::GpuMemoryBufferHandle) | 175 gfx::GpuMemoryBufferHandle) |
| OLD | NEW |