OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // IPC messages for interactions between the WebMediaPlayerDelegate in the | 5 // IPC messages for interactions between the WebMediaPlayerDelegate in the |
6 // renderer process and MediaWebContentsObserver in the browser process. | 6 // renderer process and MediaWebContentsObserver in the browser process. |
7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/time/time.h" | |
12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
13 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 13 #include "media/base/media_content_type.h" |
14 | 14 |
15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
17 #define IPC_MESSAGE_START MediaPlayerDelegateMsgStart | 17 #define IPC_MESSAGE_START MediaPlayerDelegateMsgStart |
18 | 18 |
| 19 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaContentType, |
| 20 media::MediaContentType::Uncontrollable) |
| 21 |
19 // ---------------------------------------------------------------------------- | 22 // ---------------------------------------------------------------------------- |
20 // Messages from the browser to the renderer requesting playback state changes. | 23 // Messages from the browser to the renderer requesting playback state changes. |
21 // ---------------------------------------------------------------------------- | 24 // ---------------------------------------------------------------------------- |
22 | 25 |
23 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause, | 26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause, |
24 int /* delegate_id, distinguishes instances */) | 27 int /* delegate_id, distinguishes instances */) |
25 | 28 |
26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play, | 29 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play, |
27 int /* delegate_id, distinguishes instances */) | 30 int /* delegate_id, distinguishes instances */) |
28 | 31 |
(...skipping 12 matching lines...) Expand all Loading... |
41 | 44 |
42 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused, | 45 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused, |
43 int /* delegate_id, distinguishes instances */, | 46 int /* delegate_id, distinguishes instances */, |
44 bool /* reached end of stream */) | 47 bool /* reached end of stream */) |
45 | 48 |
46 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying, | 49 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying, |
47 int /* delegate_id, distinguishes instances */, | 50 int /* delegate_id, distinguishes instances */, |
48 bool /* has_video */, | 51 bool /* has_video */, |
49 bool /* has_audio */, | 52 bool /* has_audio */, |
50 bool /* is_remote */, | 53 bool /* is_remote */, |
51 base::TimeDelta /* duration */) | 54 media::MediaContentType /* media_content_type */) |
OLD | NEW |