OLD | NEW |
---|---|
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" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 int /* player_id */) | 118 int /* player_id */) |
119 | 119 |
120 // The player was paused. | 120 // The player was paused. |
121 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, | 121 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, |
122 int /* player_id */) | 122 int /* player_id */) |
123 | 123 |
124 // Media seek is requested. | 124 // Media seek is requested. |
125 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, | 125 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, |
126 int /* player_id */, | 126 int /* player_id */, |
127 base::TimeDelta /* time_to_seek */, | 127 base::TimeDelta /* time_to_seek */, |
128 bool /* request_texture_peer */) | 128 unsigned /* seek_request_id */) |
129 | 129 |
130 // The media source player reads data from demuxer | 130 // The media source player reads data from demuxer |
131 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, | 131 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, |
132 int /* player_id */, | 132 int /* player_id */, |
133 media::DemuxerStream::Type /* type */, | 133 media::DemuxerStream::Type /* type */, |
134 bool /* seek_done */) | 134 bool /* seek_done */) |
135 | 135 |
136 // The player needs new config data | |
137 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaConfigRequest, | |
138 int /* player_id */) | |
139 | |
136 // Messages for controllering the media playback in browser process ---------- | 140 // Messages for controllering the media playback in browser process ---------- |
137 | 141 |
138 // Destroy the media player object. | 142 // Destroy the media player object. |
139 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 143 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
140 int /* player_id */) | 144 int /* player_id */) |
141 | 145 |
142 // Destroy all the players. | 146 // Destroy all the players. |
143 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 147 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
144 | 148 |
145 // Initialize a media player object with the given player_id. | 149 // Initialize a media player object with the given player_id. |
(...skipping 22 matching lines...) Expand all Loading... | |
168 | 172 |
169 // Request the player to enter fullscreen. | 173 // Request the player to enter fullscreen. |
170 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, | 174 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, |
171 int /* player_id */) | 175 int /* player_id */) |
172 | 176 |
173 // Request the player to exit fullscreen. | 177 // Request the player to exit fullscreen. |
174 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, | 178 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, |
175 int /* player_id */) | 179 int /* player_id */) |
176 | 180 |
177 // Sent when the seek request is received by the WebMediaPlayerAndroid. | 181 // Sent when the seek request is received by the WebMediaPlayerAndroid. |
178 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaSeekRequestAck, | 182 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaSeekRequestAck, |
179 int /* player_id */) | 183 int /* player_id */, |
184 unsigned /* request_id */) | |
acolwell GONE FROM CHROMIUM
2013/06/04 15:19:14
nit: s/request/seek_request/
qinmin
2013/06/04 19:03:23
Done.
| |
180 | 185 |
181 // Inform the media source player that the demuxer is ready. | 186 // Inform the media source player that the demuxer is ready. |
182 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, | 187 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, |
183 int /* player_id */, | 188 int /* player_id */, |
184 media::MediaPlayerHostMsg_DemuxerReady_Params) | 189 media::MediaPlayerHostMsg_DemuxerReady_Params) |
185 | 190 |
186 // Sent when the data was read from the ChunkDemuxer. | 191 // Sent when the data was read from the ChunkDemuxer. |
187 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 192 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
188 int /* player_id */, | 193 int /* player_id */, |
189 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) | 194 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) |
190 | 195 |
191 #if defined(GOOGLE_TV) | 196 #if defined(GOOGLE_TV) |
192 // Notify the player about the external surface, requesting it if necessary. | 197 // Notify the player about the external surface, requesting it if necessary. |
193 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 198 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
194 int /* player_id */, | 199 int /* player_id */, |
195 bool /* is_request */, | 200 bool /* is_request */, |
196 gfx::RectF /* rect */) | 201 gfx::RectF /* rect */) |
197 | 202 |
198 #endif | 203 #endif |
OLD | NEW |