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

Unified Diff: content/common/child_process_messages.h

Issue 2334533002: base: Move renderer threads to the appropriate cpuset. (Closed)
Patch Set: v3 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..952fc4650d109a582dec961af52f80c6b1c47835 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 priority of thread.
+IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority,
+ base::PlatformThreadId,
+ base::ThreadPriority)

Powered by Google App Engine
This is Rietveld 408576698