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

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

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: Created 4 years, 3 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 <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/threading/platform_thread.h"
14 #include "base/tracked_objects.h" 15 #include "base/tracked_objects.h"
15 #include "base/values.h" 16 #include "base/values.h"
16 #include "build/build_config.h" 17 #include "build/build_config.h"
17 #include "cc/resources/shared_bitmap_manager.h" 18 #include "cc/resources/shared_bitmap_manager.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "content/common/content_param_traits_macros.h" 20 #include "content/common/content_param_traits_macros.h"
20 #include "content/common/host_discardable_shared_memory_manager.h" 21 #include "content/common/host_discardable_shared_memory_manager.h"
21 #include "gpu/command_buffer/common/sync_token.h" 22 #include "gpu/command_buffer/common/sync_token.h"
22 #include "gpu/ipc/common/gpu_param_traits_macros.h" 23 #include "gpu/ipc/common/gpu_param_traits_macros.h"
23 #include "ipc/ipc_channel_handle.h" 24 #include "ipc/ipc_channel_handle.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 60
60 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot) 61 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot)
61 IPC_STRUCT_TRAITS_MEMBER(tasks) 62 IPC_STRUCT_TRAITS_MEMBER(tasks)
62 IPC_STRUCT_TRAITS_END() 63 IPC_STRUCT_TRAITS_END()
63 64
64 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) 65 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot)
65 IPC_STRUCT_TRAITS_MEMBER(phased_snapshots) 66 IPC_STRUCT_TRAITS_MEMBER(phased_snapshots)
66 IPC_STRUCT_TRAITS_MEMBER(process_id) 67 IPC_STRUCT_TRAITS_MEMBER(process_id)
67 IPC_STRUCT_TRAITS_END() 68 IPC_STRUCT_TRAITS_END()
68 69
70 IPC_ENUM_TRAITS_MAX_VALUE(base::ThreadPriority,
71 base::ThreadPriority::REALTIME_AUDIO)
72
69 #undef IPC_MESSAGE_EXPORT 73 #undef IPC_MESSAGE_EXPORT
70 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 74 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
71 75
72 #define IPC_MESSAGE_START ChildProcessMsgStart 76 #define IPC_MESSAGE_START ChildProcessMsgStart
73 77
74 // Messages sent from the browser to the child process. 78 // Messages sent from the browser to the child process.
75 79
76 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child 80 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child
77 // process that it's safe to shutdown. 81 // process that it's safe to shutdown.
78 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) 82 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 IPC_SYNC_MESSAGE_CONTROL2_1( 208 IPC_SYNC_MESSAGE_CONTROL2_1(
205 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 209 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
206 uint32_t /* size */, 210 uint32_t /* size */,
207 content::DiscardableSharedMemoryId, 211 content::DiscardableSharedMemoryId,
208 base::SharedMemoryHandle) 212 base::SharedMemoryHandle)
209 213
210 // Informs the browser that the child deleted a block of discardable shared 214 // Informs the browser that the child deleted a block of discardable shared
211 // memory. 215 // memory.
212 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, 216 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
213 content::DiscardableSharedMemoryId) 217 content::DiscardableSharedMemoryId)
218
219 // Asks the browser to change the affinity of thread based on priority.
220 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadAffinity,
221 base::PlatformThreadId,
222 base::ThreadPriority)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698