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

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: fix bugs 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)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 IPC_STRUCT_TRAITS_MEMBER(iv) 57 IPC_STRUCT_TRAITS_MEMBER(iv)
57 IPC_STRUCT_TRAITS_MEMBER(subsamples) 58 IPC_STRUCT_TRAITS_MEMBER(subsamples)
58 IPC_STRUCT_TRAITS_END() 59 IPC_STRUCT_TRAITS_END()
59 60
60 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 61 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
61 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 62 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
62 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 63 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
63 IPC_STRUCT_TRAITS_END() 64 IPC_STRUCT_TRAITS_END()
64 #endif 65 #endif
65 66
67 IPC_ENUM_TRAITS(media::MediaPlayerAndroid::SourceType)
68
66 // Messages for notifying the render process of media playback status ------- 69 // Messages for notifying the render process of media playback status -------
67 70
68 // Media buffering has updated. 71 // Media buffering has updated.
69 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate, 72 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate,
70 int /* player_id */, 73 int /* player_id */,
71 int /* percent */) 74 int /* percent */)
72 75
73 // A media playback error has occured. 76 // A media playback error has occured.
74 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaError, 77 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaError,
75 int /* player_id */, 78 int /* player_id */,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Messages for controllering the media playback in browser process ---------- 137 // Messages for controllering the media playback in browser process ----------
135 138
136 // Destroy the media player object. 139 // Destroy the media player object.
137 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 140 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
138 int /* player_id */) 141 int /* player_id */)
139 142
140 // Destroy all the players. 143 // Destroy all the players.
141 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) 144 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers)
142 145
143 // Initialize a media player object with the given player_id. 146 // Initialize a media player object with the given player_id.
144 IPC_MESSAGE_ROUTED4(MediaPlayerHostMsg_MediaPlayerInitialize, 147 IPC_MESSAGE_ROUTED4(
145 int /* player_id */, 148 MediaPlayerHostMsg_MediaPlayerInitialize,
146 GURL /* url */, 149 int /* player_id */,
147 bool /* is_media_source */, 150 GURL /* url */,
148 GURL /* first_party_for_cookies */) 151 media::MediaPlayerAndroid::SourceType /* media_source_type */,
acolwell GONE FROM CHROMIUM 2013/05/20 21:23:22 nit: s/media_//
wonsik 2013/05/21 10:09:29 Done.
152 GURL /* first_party_for_cookies */)
149 153
150 // Pause the player. 154 // Pause the player.
151 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause, 155 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause,
152 int /* player_id */) 156 int /* player_id */)
153 157
154 // Release player resources, but keep the object for future usage. 158 // Release player resources, but keep the object for future usage.
155 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease, 159 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease,
156 int /* player_id */) 160 int /* player_id */)
157 161
158 // Perform a seek. 162 // Perform a seek.
(...skipping 23 matching lines...) Expand all
182 // Inform the media source player that the demuxer is ready. 186 // Inform the media source player that the demuxer is ready.
183 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, 187 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady,
184 int /* player_id */, 188 int /* player_id */,
185 media::MediaPlayerHostMsg_DemuxerReady_Params) 189 media::MediaPlayerHostMsg_DemuxerReady_Params)
186 190
187 // Sent when the data was read from the ChunkDemuxer. 191 // Sent when the data was read from the ChunkDemuxer.
188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, 192 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck,
189 int /* player_id */, 193 int /* player_id */,
190 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) 194 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params)
191 #endif 195 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698