OLD | NEW |
(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 */) |
OLD | NEW |