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

Unified Diff: content/common/media/media_session_messages_android.h

Issue 1515623002: Media Session: passing metadata from renderer/ to browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session_ipc
Patch Set: semicolon Created 4 years, 11 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 | « content/browser/media/android/media_web_contents_observer_android.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_session_messages_android.h
diff --git a/content/common/media/media_session_messages_android.h b/content/common/media/media_session_messages_android.h
index 18a63844d70e9c4077135f5f1881fe2785a154cf..266ee273bcf197027cff8b4ed45332254a4eda48 100644
--- a/content/common/media/media_session_messages_android.h
+++ b/content/common/media/media_session_messages_android.h
@@ -7,12 +7,19 @@
#include "content/common/android/gin_java_bridge_errors.h"
#include "content/common/content_export.h"
+#include "content/public/common/media_metadata.h"
#include "ipc/ipc_message_macros.h"
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START MediaSessionMsgStart
+IPC_STRUCT_TRAITS_BEGIN(content::MediaMetadata)
+ IPC_STRUCT_TRAITS_MEMBER(title)
+ IPC_STRUCT_TRAITS_MEMBER(artist)
+ IPC_STRUCT_TRAITS_MEMBER(album)
+IPC_STRUCT_TRAITS_END()
+
// Messages for notifying the render process of media session status -------
IPC_MESSAGE_ROUTED2(MediaSessionMsg_DidActivate,
@@ -30,3 +37,7 @@ IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_Activate,
IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_Deactivate,
int /* session_id */,
int /* request_id */)
+
+IPC_MESSAGE_ROUTED2(MediaSessionHostMsg_SetMetadata,
+ int /* request_id*/,
+ content::MediaMetadata /* metadata */)
« no previous file with comments | « content/browser/media/android/media_web_contents_observer_android.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698