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

Unified Diff: content/common/frame_messages.h

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Merge. Cleanup. Fix RequestPlay. 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
Index: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 18892e8df157d35185a1ed50ea36d64b4f8181db..d016d3caaffce46687fdfda13776709d4cf3bc80 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -745,6 +745,12 @@ IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
// Posts a message from a frame in another process to the current renderer.
IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
+// Messages for pausing and initiating playback from the browser side.
+IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePause,
+ int64_t /* player_cookie, distinguishes instances */)
+IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePlay,
+ int64_t /* player_cookie, distinguishes instances */)
+
#if defined(OS_ANDROID)
// External popup menus.
@@ -1235,15 +1241,20 @@ IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser,
int /* id */,
SkColor /* color */)
+IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaDestroyedNotification,
+ int64_t /* player_cookie, distinguishes instances */)
+
// Notifies the browser that media has started/stopped playing.
-IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification,
+IPC_MESSAGE_ROUTED5(FrameHostMsg_MediaPlayingNotification,
int64_t /* player_cookie, distinguishes instances */,
bool /* has_video */,
bool /* has_audio */,
- bool /* is_remote */)
+ bool /* is_remote */,
+ base::TimeDelta /* duration */)
-IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification,
- int64_t /* player_cookie, distinguishes instances */)
+IPC_MESSAGE_ROUTED2(FrameHostMsg_MediaPausedNotification,
+ int64_t /* player_cookie, distinguishes instances */,
+ bool /* reached end of stream */)
// Notify browser the theme color has been changed.
IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor,

Powered by Google App Engine
This is Rietveld 408576698