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

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

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: revert to CHECK_NE 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
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/common/content_param_traits_macros.h" 19 #include "content/common/content_param_traits_macros.h"
20 #include "content/common/host_discardable_shared_memory_manager.h" 20 #include "content/common/host_discardable_shared_memory_manager.h"
21 #include "gpu/command_buffer/common/sync_token.h" 21 #include "gpu/command_buffer/common/sync_token.h"
22 #include "gpu/ipc/common/gpu_param_traits_macros.h" 22 #include "gpu/ipc/common/gpu_param_traits_macros.h"
23 #include "ipc/ipc_channel_handle.h" 23 #include "ipc/ipc_channel_handle.h"
24 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
25 #include "ipc/ipc_platform_file.h" 25 #include "ipc/ipc_platform_file.h"
26 #include "ui/gfx/gpu_memory_buffer.h" 26 #include "ui/gfx/gpu_memory_buffer.h"
27 #include "ui/gfx/ipc/gfx_param_traits.h" 27 #include "ui/gfx/ipc/gfx_param_traits.h"
28 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 28 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
29 29
30 #if defined(OS_LINUX)
31 #include "base/threading/platform_thread.h"
32 #endif
33
30 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status, 34 IPC_ENUM_TRAITS_MAX_VALUE(tracked_objects::ThreadData::Status,
31 tracked_objects::ThreadData::STATUS_LAST) 35 tracked_objects::ThreadData::STATUS_LAST)
32 36
33 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot) 37 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::LocationSnapshot)
34 IPC_STRUCT_TRAITS_MEMBER(file_name) 38 IPC_STRUCT_TRAITS_MEMBER(file_name)
35 IPC_STRUCT_TRAITS_MEMBER(function_name) 39 IPC_STRUCT_TRAITS_MEMBER(function_name)
36 IPC_STRUCT_TRAITS_MEMBER(line_number) 40 IPC_STRUCT_TRAITS_MEMBER(line_number)
37 IPC_STRUCT_TRAITS_END() 41 IPC_STRUCT_TRAITS_END()
38 42
39 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::BirthOnThreadSnapshot) 43 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::BirthOnThreadSnapshot)
(...skipping 19 matching lines...) Expand all
59 63
60 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot) 64 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataPhaseSnapshot)
61 IPC_STRUCT_TRAITS_MEMBER(tasks) 65 IPC_STRUCT_TRAITS_MEMBER(tasks)
62 IPC_STRUCT_TRAITS_END() 66 IPC_STRUCT_TRAITS_END()
63 67
64 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) 68 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot)
65 IPC_STRUCT_TRAITS_MEMBER(phased_snapshots) 69 IPC_STRUCT_TRAITS_MEMBER(phased_snapshots)
66 IPC_STRUCT_TRAITS_MEMBER(process_id) 70 IPC_STRUCT_TRAITS_MEMBER(process_id)
67 IPC_STRUCT_TRAITS_END() 71 IPC_STRUCT_TRAITS_END()
68 72
73 #if defined(OS_LINUX)
74 IPC_ENUM_TRAITS_MAX_VALUE(base::ThreadPriority,
75 base::ThreadPriority::REALTIME_AUDIO)
76 #endif
77
69 #undef IPC_MESSAGE_EXPORT 78 #undef IPC_MESSAGE_EXPORT
70 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 79 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
71 80
72 #define IPC_MESSAGE_START ChildProcessMsgStart 81 #define IPC_MESSAGE_START ChildProcessMsgStart
73 82
74 // Messages sent from the browser to the child process. 83 // Messages sent from the browser to the child process.
75 84
76 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child 85 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child
77 // process that it's safe to shutdown. 86 // process that it's safe to shutdown.
78 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) 87 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 IPC_SYNC_MESSAGE_CONTROL2_1( 213 IPC_SYNC_MESSAGE_CONTROL2_1(
205 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 214 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
206 uint32_t /* size */, 215 uint32_t /* size */,
207 content::DiscardableSharedMemoryId, 216 content::DiscardableSharedMemoryId,
208 base::SharedMemoryHandle) 217 base::SharedMemoryHandle)
209 218
210 // Informs the browser that the child deleted a block of discardable shared 219 // Informs the browser that the child deleted a block of discardable shared
211 // memory. 220 // memory.
212 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, 221 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
213 content::DiscardableSharedMemoryId) 222 content::DiscardableSharedMemoryId)
223
224 #if defined(OS_LINUX)
225 // Asks the browser to change the priority of thread.
226 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority,
227 base::PlatformThreadId,
228 base::ThreadPriority)
229 #endif
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698