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

Side by Side Diff: content/common/media/media_player_delegate_messages.h

Issue 2475473002: Implement one-shot audio focus inside MediaSession (Closed)
Patch Set: fixed a case where removing the last one-shot player Created 4 years, 1 month 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
OLDNEW
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
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 */)
OLDNEW
« no previous file with comments | « content/browser/media/session/pepper_playback_observer.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698