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

Unified 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698