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

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: Rebase yet again. 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 1fd22bf592bbfd4f1ea34b9038a44f51b5a1e1d5..4fa6b9e6d196acd06925fb4c3a989020544df0b2 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -755,6 +755,15 @@ 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 */)
+IPC_MESSAGE_ROUTED2(FrameMsg_MediaDelegateVolumeMultiplierUpdate,
+ int64_t /* player_cookie, distinguishes instances */,
+ double /* multiplier */)
+
#if defined(OS_ANDROID)
// Sent when the browser wants the bounding boxes of the current find matches.
//
@@ -1266,15 +1275,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