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