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

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

Issue 339613002: 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
76 // Chrome for Android seek message sequence is: 65 // Chrome for Android seek message sequence is:
77 // 1. Renderer->Browser MediaPlayerHostMsg_Seek 66 // 1. Renderer->Browser MediaPlayerHostMsg_Seek
78 // This is the beginning of actual seek flow in response to web app requests 67 // This is the beginning of actual seek flow in response to web app requests
79 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, 68 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message,
80 // the renderer asks browser to perform actual seek. At most one of these 69 // the renderer asks browser to perform actual seek. At most one of these
81 // actual seeks will be in process between this message and renderer's later 70 // actual seeks will be in process between this message and renderer's later
82 // receipt of MediaPlayerMsg_SeekCompleted from the browser. 71 // receipt of MediaPlayerMsg_SeekCompleted from the browser.
83 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted 72 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted
84 // Once the browser determines the seek is complete, it sends this message to 73 // Once the browser determines the seek is complete, it sends this message to
85 // notify the renderer of seek completion. 74 // notify the renderer of seek completion.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 191
203 // Pauses all video playback. 192 // Pauses all video playback.
204 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo) 193 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo)
205 194
206 // Messages for controlling the media playback in browser process ---------- 195 // Messages for controlling the media playback in browser process ----------
207 196
208 // Destroy the media player object. 197 // Destroy the media player object.
209 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 198 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
210 int /* player_id */) 199 int /* player_id */)
211 200
212 // Initialize a media player object. 201 // Initialize a media player object with the given type and player_id. The other
213 IPC_MESSAGE_ROUTED1( 202 // parameters are used depending on the type of player.
214 MediaPlayerHostMsg_Initialize, 203 //
215 MediaPlayerHostMsg_Initialize_Params); 204 // url: the URL to load when initializing a URL player.
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