Chromium Code Reviews| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 IPC_STRUCT_TRAITS_MEMBER(subsamples) | 55 IPC_STRUCT_TRAITS_MEMBER(subsamples) |
| 56 IPC_STRUCT_TRAITS_END() | 56 IPC_STRUCT_TRAITS_END() |
| 57 | 57 |
| 58 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) | 58 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) |
| 59 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) | 59 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) |
| 60 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) | 60 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) |
| 61 IPC_STRUCT_TRAITS_END() | 61 IPC_STRUCT_TRAITS_END() |
| 62 | 62 |
| 63 IPC_ENUM_TRAITS(MediaPlayerHostMsg_Initialize_Type) | 63 IPC_ENUM_TRAITS(MediaPlayerHostMsg_Initialize_Type) |
| 64 | 64 |
| 65 // Parameters to describe a media player | |
| 66 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) | |
| 67 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) | |
| 68 IPC_STRUCT_MEMBER(int, player_id) | |
| 69 IPC_STRUCT_MEMBER(int, demuxer_client_id) | |
| 70 IPC_STRUCT_MEMBER(GURL, url) | |
| 71 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | |
| 72 IPC_STRUCT_MEMBER(GURL, frame_url) | |
| 73 IPC_STRUCT_END() | |
| 74 | |
| 65 // Chrome for Android seek message sequence is: | 75 // Chrome for Android seek message sequence is: |
| 66 // 1. Renderer->Browser MediaPlayerHostMsg_Seek | 76 // 1. Renderer->Browser MediaPlayerHostMsg_Seek |
| 67 // This is the beginning of actual seek flow in response to web app requests | 77 // This is the beginning of actual seek flow in response to web app requests |
| 68 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, | 78 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, |
| 69 // the renderer asks browser to perform actual seek. At most one of these | 79 // the renderer asks browser to perform actual seek. At most one of these |
| 70 // actual seeks will be in process between this message and renderer's later | 80 // actual seeks will be in process between this message and renderer's later |
| 71 // receipt of MediaPlayerMsg_SeekCompleted from the browser. | 81 // receipt of MediaPlayerMsg_SeekCompleted from the browser. |
| 72 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted | 82 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted |
| 73 // Once the browser determines the seek is complete, it sends this message to | 83 // Once the browser determines the seek is complete, it sends this message to |
| 74 // notify the renderer of seek completion. | 84 // notify the renderer of seek completion. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 | 210 |
| 201 // Initialize a media player object with the given type and player_id. The other | 211 // Initialize a media player object with the given type and player_id. The other |
| 202 // parameters are used depending on the type of player. | 212 // parameters are used depending on the type of player. |
| 203 // | 213 // |
| 204 // url: the URL to load when initializing a URL player. | 214 // url: the URL to load when initializing a URL player. |
| 205 // | 215 // |
| 206 // first_party_for_cookies: the cookie store to use when loading a URL. | 216 // first_party_for_cookies: the cookie store to use when loading a URL. |
| 207 // | 217 // |
| 208 // demuxer_client_id: the demuxer associated with this player when initializing | 218 // demuxer_client_id: the demuxer associated with this player when initializing |
| 209 // a media source player. | 219 // a media source player. |
| 210 IPC_MESSAGE_ROUTED5( | 220 IPC_MESSAGE_ROUTED2( |
| 211 MediaPlayerHostMsg_Initialize, | 221 MediaPlayerHostMsg_Initialize, |
| 212 MediaPlayerHostMsg_Initialize_Type /* type */, | 222 MediaPlayerHostMsg_Initialize_Type /* type */, |
| 223 MediaPlayerHostMsg_Initialize_Params); | |
| 224 | |
| 225 // Sets the URL of the frame containing the video with the given player_id | |
| 226 IPC_MESSAGE_ROUTED2( | |
|
acolwell GONE FROM CHROMIUM
2014/06/09 20:02:09
Is this still needed?
May
2014/06/10 18:22:19
Removed. Good catch.
| |
| 227 MediaPlayerHostMsg_SetFrameUrl, | |
| 213 int /* player_id */, | 228 int /* player_id */, |
| 214 GURL /* url */, | 229 GURL /* frame_source_url */); |
| 215 GURL /* first_party_for_cookies */, | |
| 216 int /* demuxer_client_id */) | |
| 217 | 230 |
| 218 // Pause the player. | 231 // Pause the player. |
| 219 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_Pause, | 232 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_Pause, |
| 220 int /* player_id */, | 233 int /* player_id */, |
| 221 bool /* is_media_related_action */) | 234 bool /* is_media_related_action */) |
| 222 | 235 |
| 223 // Release player resources, but keep the object for future usage. | 236 // Release player resources, but keep the object for future usage. |
| 224 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_Release, int /* player_id */) | 237 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_Release, int /* player_id */) |
| 225 | 238 |
| 226 // Perform a seek. | 239 // Perform a seek. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 | 287 |
| 275 #if defined(VIDEO_HOLE) | 288 #if defined(VIDEO_HOLE) |
| 276 // Notify the player about the external surface, requesting it if necessary. | 289 // Notify the player about the external surface, requesting it if necessary. |
| 277 // |is_request| true if the player is requesting the external surface. | 290 // |is_request| true if the player is requesting the external surface. |
| 278 // |rect| the boundary rectangle of the video element. | 291 // |rect| the boundary rectangle of the video element. |
| 279 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 292 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 280 int /* player_id */, | 293 int /* player_id */, |
| 281 bool /* is_request */, | 294 bool /* is_request */, |
| 282 gfx::RectF /* rect */) | 295 gfx::RectF /* rect */) |
| 283 #endif // defined(VIDEO_HOLE) | 296 #endif // defined(VIDEO_HOLE) |
| OLD | NEW |