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

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

Issue 14247018: Implement WebRTC in Chrome for TV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed some comments Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 android media player. 5 // IPC messages for android media player.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "media/base/android/media_player_bridge.h"
14 #include "ui/gfx/rect_f.h" 15 #include "ui/gfx/rect_f.h"
15 16
16 #undef IPC_MESSAGE_EXPORT 17 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
18 #define IPC_MESSAGE_START MediaPlayerMsgStart 19 #define IPC_MESSAGE_START MediaPlayerMsgStart
19 20
20 #if defined(GOOGLE_TV) 21 #if defined(GOOGLE_TV)
21 #include "media/base/android/demuxer_stream_player_params.h" 22 #include "media/base/android/demuxer_stream_player_params.h"
22 23
23 IPC_ENUM_TRAITS(media::AudioCodec) 24 IPC_ENUM_TRAITS(media::AudioCodec)
24 IPC_ENUM_TRAITS(media::DemuxerStream::Status) 25 IPC_ENUM_TRAITS(media::DemuxerStream::Status)
25 IPC_ENUM_TRAITS(media::DemuxerStream::Type) 26 IPC_ENUM_TRAITS(media::DemuxerStream::Type)
27 IPC_ENUM_TRAITS(media::MediaPlayerBridge::MediaType)
26 IPC_ENUM_TRAITS(media::VideoCodec) 28 IPC_ENUM_TRAITS(media::VideoCodec)
27 29
28 IPC_STRUCT_TRAITS_BEGIN(media::MediaPlayerHostMsg_DemuxerReady_Params) 30 IPC_STRUCT_TRAITS_BEGIN(media::MediaPlayerHostMsg_DemuxerReady_Params)
29 IPC_STRUCT_TRAITS_MEMBER(audio_codec) 31 IPC_STRUCT_TRAITS_MEMBER(audio_codec)
30 IPC_STRUCT_TRAITS_MEMBER(audio_channels) 32 IPC_STRUCT_TRAITS_MEMBER(audio_channels)
31 IPC_STRUCT_TRAITS_MEMBER(audio_sampling_rate) 33 IPC_STRUCT_TRAITS_MEMBER(audio_sampling_rate)
32 IPC_STRUCT_TRAITS_MEMBER(is_audio_encrypted) 34 IPC_STRUCT_TRAITS_MEMBER(is_audio_encrypted)
33 35
34 IPC_STRUCT_TRAITS_MEMBER(video_codec) 36 IPC_STRUCT_TRAITS_MEMBER(video_codec)
35 IPC_STRUCT_TRAITS_MEMBER(video_size) 37 IPC_STRUCT_TRAITS_MEMBER(video_size)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 137 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
136 int /* player_id */) 138 int /* player_id */)
137 139
138 // Destroy all the players. 140 // Destroy all the players.
139 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) 141 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers)
140 142
141 // Initialize a media player object with the given player_id. 143 // Initialize a media player object with the given player_id.
142 IPC_MESSAGE_ROUTED4(MediaPlayerHostMsg_MediaPlayerInitialize, 144 IPC_MESSAGE_ROUTED4(MediaPlayerHostMsg_MediaPlayerInitialize,
143 int /* player_id */, 145 int /* player_id */,
144 GURL /* url */, 146 GURL /* url */,
145 bool /* is_media_source */, 147 media::MediaPlayerBridge::MediaType /* media_type */,
146 GURL /* first_party_for_cookies */) 148 GURL /* first_party_for_cookies */)
147 149
148 // Pause the player. 150 // Pause the player.
149 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause, 151 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause,
150 int /* player_id */) 152 int /* player_id */)
151 153
152 // Release player resources, but keep the object for future usage. 154 // Release player resources, but keep the object for future usage.
153 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease, 155 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease,
154 int /* player_id */) 156 int /* player_id */)
155 157
(...skipping 27 matching lines...) Expand all
183 // Inform the media source player that the demuxer is ready. 185 // Inform the media source player that the demuxer is ready.
184 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, 186 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady,
185 int /* player_id */, 187 int /* player_id */,
186 media::MediaPlayerHostMsg_DemuxerReady_Params) 188 media::MediaPlayerHostMsg_DemuxerReady_Params)
187 189
188 // Sent when the data was read from the ChunkDemuxer. 190 // Sent when the data was read from the ChunkDemuxer.
189 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, 191 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck,
190 int /* player_id */, 192 int /* player_id */,
191 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) 193 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params)
192 #endif 194 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698