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, |