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

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

Issue 338243005: Revert of Revert of Support casting for embedded YT videos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 "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
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(MediaPlayerHostMsg_Initialize_Type, type)
68 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle)
69 IPC_STRUCT_MEMBER(int, player_id)
70 IPC_STRUCT_MEMBER(int, demuxer_client_id)
71 IPC_STRUCT_MEMBER(GURL, url)
72 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
73 IPC_STRUCT_MEMBER(GURL, frame_url)
74 IPC_STRUCT_END()
75
65 // Chrome for Android seek message sequence is: 76 // Chrome for Android seek message sequence is:
66 // 1. Renderer->Browser MediaPlayerHostMsg_Seek 77 // 1. Renderer->Browser MediaPlayerHostMsg_Seek
67 // This is the beginning of actual seek flow in response to web app requests 78 // This is the beginning of actual seek flow in response to web app requests
68 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, 79 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message,
69 // the renderer asks browser to perform actual seek. At most one of these 80 // 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 81 // actual seeks will be in process between this message and renderer's later
71 // receipt of MediaPlayerMsg_SeekCompleted from the browser. 82 // receipt of MediaPlayerMsg_SeekCompleted from the browser.
72 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted 83 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted
73 // Once the browser determines the seek is complete, it sends this message to 84 // Once the browser determines the seek is complete, it sends this message to
74 // notify the renderer of seek completion. 85 // notify the renderer of seek completion.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 202
192 // Pauses all video playback. 203 // Pauses all video playback.
193 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo) 204 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo)
194 205
195 // Messages for controlling the media playback in browser process ---------- 206 // Messages for controlling the media playback in browser process ----------
196 207
197 // Destroy the media player object. 208 // Destroy the media player object.
198 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 209 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
199 int /* player_id */) 210 int /* player_id */)
200 211
201 // Initialize a media player object with the given type and player_id. The other 212 // Initialize a media player object.
202 // parameters are used depending on the type of player. 213 IPC_MESSAGE_ROUTED1(
203 // 214 MediaPlayerHostMsg_Initialize,
204 // url: the URL to load when initializing a URL player. 215 MediaPlayerHostMsg_Initialize_Params);
205 //
206 // first_party_for_cookies: the cookie store to use when loading a URL.
207 //
208 // demuxer_client_id: the demuxer associated with this player when initializing
209 // a media source player.
210 IPC_MESSAGE_ROUTED5(MediaPlayerHostMsg_Initialize,
211 MediaPlayerHostMsg_Initialize_Type /* type */,
212 int /* player_id */,
213 GURL /* url */,
214 GURL /* first_party_for_cookies */,
215 int /* demuxer_client_id */)
216 216
217 // Pause the player. 217 // Pause the player.
218 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_Pause, 218 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_Pause,
219 int /* player_id */, 219 int /* player_id */,
220 bool /* is_media_related_action */) 220 bool /* is_media_related_action */)
221 221
222 // Release player resources, but keep the object for future usage. 222 // Release player resources, but keep the object for future usage.
223 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_Release, int /* player_id */) 223 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_Release, int /* player_id */)
224 224
225 // Perform a seek. 225 // Perform a seek.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 #if defined(VIDEO_HOLE) 274 #if defined(VIDEO_HOLE)
275 // Notify the player about the external surface, requesting it if necessary. 275 // Notify the player about the external surface, requesting it if necessary.
276 // |is_request| true if the player is requesting the external surface. 276 // |is_request| true if the player is requesting the external surface.
277 // |rect| the boundary rectangle of the video element. 277 // |rect| the boundary rectangle of the video element.
278 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, 278 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface,
279 int /* player_id */, 279 int /* player_id */,
280 bool /* is_request */, 280 bool /* is_request */,
281 gfx::RectF /* rect */) 281 gfx::RectF /* rect */)
282 #endif // defined(VIDEO_HOLE) 282 #endif // defined(VIDEO_HOLE)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698