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

Unified Diff: content/common/media/media_player_delegate_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: Reorder. 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/common/frame_messages.h ('k') | content/common/media/media_player_messages_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_player_delegate_messages.h
diff --git a/content/common/media/media_player_delegate_messages.h b/content/common/media/media_player_delegate_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..01485606718b33f9186341aab995d04c46d3f300
--- /dev/null
+++ b/content/common/media/media_player_delegate_messages.h
@@ -0,0 +1,49 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for interactions between the WebMediaPlayerDelegate in the
+// renderer process and MediaWebContentsObserver in the browser process.
+// Multiply-included message file, hence no include guard.
+
+#include <stdint.h>
+
+#include "base/time/time.h"
+#include "content/common/content_export.h"
+#include "ipc/ipc_message_macros.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+#define IPC_MESSAGE_START MediaPlayerDelegateMsgStart
+
+// ----------------------------------------------------------------------------
+// Messages from the browser to the renderer requesting playback state changes.
+// ----------------------------------------------------------------------------
+
+IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause,
+ int /* delegate_id, distinguishes instances */)
+
+IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play,
+ int /* delegate_id, distinguishes instances */)
+
+IPC_MESSAGE_ROUTED2(MediaPlayerDelegateMsg_UpdateVolumeMultiplier,
+ int /* delegate_id, distinguishes instances */,
+ double /* multiplier */)
+
+// ----------------------------------------------------------------------------
+// Messages from the renderer notifying the browser of playback state changes.
+// ----------------------------------------------------------------------------
+
+IPC_MESSAGE_ROUTED1(MediaPlayerDelegateHostMsg_OnMediaDestroyed,
+ int /* delegate_id, distinguishes instances */)
+
+IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused,
+ int /* delegate_id, distinguishes instances */,
+ bool /* reached end of stream */)
+
+IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying,
+ int /* delegate_id, distinguishes instances */,
+ bool /* has_video */,
+ bool /* has_audio */,
+ bool /* is_remote */,
+ base::TimeDelta /* duration */)
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/media/media_player_messages_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698