Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: content/common/child_process_messages.h

Issue 1009203004: content: Add DeletedDiscardableSharedMemory IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
17 #include "ui/gfx/gpu_memory_buffer.h" 18 #include "ui/gfx/gpu_memory_buffer.h"
18 19
19 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status, 20 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status,
20 tracked_objects::ThreadData::STATUS_LAST) 21 tracked_objects::ThreadData::STATUS_LAST)
21 22
22 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot) 23 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot)
23 IPC_STRUCT_TRAITS_MEMBER(file_name) 24 IPC_STRUCT_TRAITS_MEMBER(file_name)
24 IPC_STRUCT_TRAITS_MEMBER(function_name) 25 IPC_STRUCT_TRAITS_MEMBER(function_name)
25 IPC_STRUCT_TRAITS_MEMBER(line_number) 26 IPC_STRUCT_TRAITS_MEMBER(line_number)
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 gfx::GpuMemoryBuffer::Usage, 190 gfx::GpuMemoryBuffer::Usage,
190 gfx::GpuMemoryBufferHandle) 191 gfx::GpuMemoryBufferHandle)
191 192
192 // Informs the browser that the child deleted a gpu memory buffer. 193 // Informs the browser that the child deleted a gpu memory buffer.
193 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, 194 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
194 gfx::GpuMemoryBufferId, 195 gfx::GpuMemoryBufferId,
195 uint32 /* sync_point */) 196 uint32 /* sync_point */)
196 197
197 // Asks the browser to create a block of discardable shared memory for the 198 // Asks the browser to create a block of discardable shared memory for the
198 // child process. 199 // child process.
199 IPC_SYNC_MESSAGE_CONTROL1_1( 200 IPC_SYNC_MESSAGE_CONTROL2_1(
200 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 201 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
201 uint32 /* size */, 202 uint32 /* size */,
203 content::DiscardableSharedMemoryId,
202 base::SharedMemoryHandle) 204 base::SharedMemoryHandle)
205
206 // Informs the browser that the child deleted a block of discardable shared
207 // memory.
208 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
209 content::DiscardableSharedMemoryId)
OLDNEW
« no previous file with comments | « content/child/child_discardable_shared_memory_manager_browsertest.cc ('k') | content/common/discardable_shared_memory_heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698