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 "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
13 #include "media/base/media_content_type.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, | 19 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaContentType, media::MediaContentType::Max) |
20 media::MediaContentType::Uncontrollable) | |
21 | 20 |
22 // ---------------------------------------------------------------------------- | 21 // ---------------------------------------------------------------------------- |
23 // Messages from the browser to the renderer requesting playback state changes. | 22 // Messages from the browser to the renderer requesting playback state changes. |
24 // ---------------------------------------------------------------------------- | 23 // ---------------------------------------------------------------------------- |
25 | 24 |
26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause, | 25 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause, |
27 int /* delegate_id, distinguishes instances */) | 26 int /* delegate_id, distinguishes instances */) |
28 | 27 |
29 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play, | 28 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play, |
30 int /* delegate_id, distinguishes instances */) | 29 int /* delegate_id, distinguishes instances */) |
(...skipping 14 matching lines...) Expand all Loading... |
45 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused, | 44 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused, |
46 int /* delegate_id, distinguishes instances */, | 45 int /* delegate_id, distinguishes instances */, |
47 bool /* reached end of stream */) | 46 bool /* reached end of stream */) |
48 | 47 |
49 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying, | 48 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying, |
50 int /* delegate_id, distinguishes instances */, | 49 int /* delegate_id, distinguishes instances */, |
51 bool /* has_video */, | 50 bool /* has_video */, |
52 bool /* has_audio */, | 51 bool /* has_audio */, |
53 bool /* is_remote */, | 52 bool /* is_remote */, |
54 media::MediaContentType /* media_content_type */) | 53 media::MediaContentType /* media_content_type */) |
OLD | NEW |