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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // IPC messages for interactions between the WebMediaPlayerDelegate in the
6 // renderer process and MediaWebContentsObserver in the browser process.
7 // Multiply-included message file, hence no include guard.
8
9 #include <stdint.h>
10
11 #include "base/time/time.h"
12 #include "content/common/content_export.h"
13 #include "ipc/ipc_message_macros.h"
14
15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 #define IPC_MESSAGE_START MediaPlayerDelegateMsgStart
18
19 // ----------------------------------------------------------------------------
20 // Messages from the browser to the renderer requesting playback state changes.
21 // ----------------------------------------------------------------------------
22
23 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause,
24 int /* delegate_id, distinguishes instances */)
25
26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play,
27 int /* delegate_id, distinguishes instances */)
28
29 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateMsg_UpdateVolumeMultiplier,
30 int /* delegate_id, distinguishes instances */,
31 double /* multiplier */)
32
33 // ----------------------------------------------------------------------------
34 // Messages from the renderer notifying the browser of playback state changes.
35 // ----------------------------------------------------------------------------
36
37 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateHostMsg_OnMediaDestroyed,
38 int /* delegate_id, distinguishes instances */)
39
40 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused,
41 int /* delegate_id, distinguishes instances */,
42 bool /* reached end of stream */)
43
44 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying,
45 int /* delegate_id, distinguishes instances */,
46 bool /* has_video */,
47 bool /* has_audio */,
48 bool /* is_remote */,
49 base::TimeDelta /* duration */)
OLDNEW
« 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