| Index: content/common/child_process_messages.h
|
| diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
|
| index a0fbc17ec6dd573058f61445e1bb2fa923550910..757630ecf756495b2ccb95388d79424d2a1025e2 100644
|
| --- a/content/common/child_process_messages.h
|
| +++ b/content/common/child_process_messages.h
|
| @@ -11,6 +11,7 @@
|
| #include <vector>
|
|
|
| #include "base/memory/shared_memory.h"
|
| +#include "base/threading/platform_thread.h"
|
| #include "base/tracked_objects.h"
|
| #include "base/values.h"
|
| #include "build/build_config.h"
|
| @@ -66,6 +67,9 @@ IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot)
|
| IPC_STRUCT_TRAITS_MEMBER(process_id)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| +IPC_ENUM_TRAITS_MAX_VALUE(base::ThreadPriority,
|
| + base::ThreadPriority::REALTIME_AUDIO)
|
| +
|
| #undef IPC_MESSAGE_EXPORT
|
| #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
|
|
|
| @@ -211,3 +215,8 @@ IPC_SYNC_MESSAGE_CONTROL2_1(
|
| // memory.
|
| IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
|
| content::DiscardableSharedMemoryId)
|
| +
|
| +// Asks the browser to change the affinity of thread based on priority.
|
| +IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadAffinity,
|
| + base::PlatformThreadId,
|
| + base::ThreadPriority)
|
|
|