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

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

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Fix bot issues Created 4 years 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "base/tracked_objects.h" 14 #include "base/tracked_objects.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "cc/resources/shared_bitmap_manager.h" 17 #include "cc/resources/shared_bitmap_manager.h"
18 #include "components/discardable_memory/common/discardable_shared_memory_id.h"
19 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
20 #include "content/common/content_param_traits_macros.h" 19 #include "content/common/content_param_traits_macros.h"
21 #include "gpu/command_buffer/common/sync_token.h" 20 #include "gpu/command_buffer/common/sync_token.h"
22 #include "gpu/ipc/common/gpu_param_traits_macros.h" 21 #include "gpu/ipc/common/gpu_param_traits_macros.h"
23 #include "ipc/ipc_channel_handle.h" 22 #include "ipc/ipc_channel_handle.h"
24 #include "ipc/ipc_message_macros.h" 23 #include "ipc/ipc_message_macros.h"
25 #include "ipc/ipc_platform_file.h" 24 #include "ipc/ipc_platform_file.h"
26 #include "ui/gfx/gpu_memory_buffer.h" 25 #include "ui/gfx/gpu_memory_buffer.h"
27 #include "ui/gfx/ipc/gfx_param_traits.h" 26 #include "ui/gfx/ipc/gfx_param_traits.h"
28 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 27 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 uint32_t /* height */, 197 uint32_t /* height */,
199 gfx::BufferFormat, 198 gfx::BufferFormat,
200 gfx::BufferUsage, 199 gfx::BufferUsage,
201 gfx::GpuMemoryBufferHandle) 200 gfx::GpuMemoryBufferHandle)
202 201
203 // Informs the browser that the child deleted a gpu memory buffer. 202 // Informs the browser that the child deleted a gpu memory buffer.
204 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, 203 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
205 gfx::GpuMemoryBufferId, 204 gfx::GpuMemoryBufferId,
206 gpu::SyncToken /* sync_token */) 205 gpu::SyncToken /* sync_token */)
207 206
208 // Asks the browser to create a block of discardable shared memory for the
209 // child process.
210 IPC_SYNC_MESSAGE_CONTROL2_1(
211 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
212 uint32_t /* size */,
213 discardable_memory::DiscardableSharedMemoryId,
214 base::SharedMemoryHandle)
215
216 // Informs the browser that the child deleted a block of discardable shared
217 // memory.
218 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
219 discardable_memory::DiscardableSharedMemoryId)
220
221 #if defined(OS_LINUX) 207 #if defined(OS_LINUX)
222 // Asks the browser to change the priority of thread. 208 // Asks the browser to change the priority of thread.
223 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, 209 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority,
224 base::PlatformThreadId, 210 base::PlatformThreadId,
225 base::ThreadPriority) 211 base::ThreadPriority)
226 #endif 212 #endif
OLDNEW
« no previous file with comments | « content/child/child_thread_impl_browsertest.cc ('k') | content/common/in_process_child_thread_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698