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

Unified Diff: media/gpu/ipc/common/media_messages.h

Issue 2349463003: MediaService: Implement GetChannelToken IPC (Closed)
Patch Set: Nits 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
« no previous file with comments | « no previous file | media/gpu/ipc/service/media_channel.cc » ('j') | media/gpu/ipc/service/media_channel.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/common/media_messages.h
diff --git a/media/gpu/ipc/common/media_messages.h b/media/gpu/ipc/common/media_messages.h
index b48b3bdadd07981cddd2ca19cd770a83080b898d..a841f1fc89cac9aeb1952865936c65c7b0cf5b3a 100644
--- a/media/gpu/ipc/common/media_messages.h
+++ b/media/gpu/ipc/common/media_messages.h
@@ -5,6 +5,9 @@
// Multiply-included message file, hence no include guard here, but see below
// for a much smaller-than-usual include guard section.
+#include <stdint.h>
+
+#include "base/unguessable_token.h"
#include "gpu/config/gpu_info.h"
#include "gpu/ipc/common/gpu_param_traits_macros.h"
#include "ipc/ipc_message_macros.h"
@@ -43,6 +46,15 @@ IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2)
IPC_STRUCT_END()
//------------------------------------------------------------------------------
+// Utility Messages
+
+// Sent from Renderer to GPU process to request a token identifying the channel.
+// These tokens can be used to prove ownership of the channel. The intended use
+// case is to share the command buffer with MojoMediaApplication.
+IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken,
+ base::UnguessableToken /* channel_token */)
+
+//------------------------------------------------------------------------------
// Accelerated Video Decoder Messages
// These messages are sent from Renderer process to GPU process.
« no previous file with comments | « no previous file | media/gpu/ipc/service/media_channel.cc » ('j') | media/gpu/ipc/service/media_channel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698