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/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Parameters to describe a media player | 62 // Parameters to describe a media player |
63 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) | 63 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) |
64 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) | 64 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) |
65 IPC_STRUCT_MEMBER(int, player_id) | 65 IPC_STRUCT_MEMBER(int, player_id) |
66 IPC_STRUCT_MEMBER(int, demuxer_client_id) | 66 IPC_STRUCT_MEMBER(int, demuxer_client_id) |
67 IPC_STRUCT_MEMBER(GURL, url) | 67 IPC_STRUCT_MEMBER(GURL, url) |
68 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 68 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
69 IPC_STRUCT_MEMBER(GURL, frame_url) | 69 IPC_STRUCT_MEMBER(GURL, frame_url) |
70 IPC_STRUCT_MEMBER(bool, allow_credentials) | 70 IPC_STRUCT_MEMBER(bool, allow_credentials) |
71 IPC_STRUCT_MEMBER(int, delegate_id) | 71 IPC_STRUCT_MEMBER(int, delegate_id) |
| 72 IPC_STRUCT_MEMBER(int, media_session_id) |
72 IPC_STRUCT_END() | 73 IPC_STRUCT_END() |
73 | 74 |
74 // Chrome for Android seek message sequence is: | 75 // Chrome for Android seek message sequence is: |
75 // 1. Renderer->Browser MediaPlayerHostMsg_Seek | 76 // 1. Renderer->Browser MediaPlayerHostMsg_Seek |
76 // 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 |
77 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, | 78 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, |
78 // 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 |
79 // 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 |
80 // receipt of MediaPlayerMsg_SeekCompleted from the browser. | 81 // receipt of MediaPlayerMsg_SeekCompleted from the browser. |
81 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted | 82 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 275 |
275 #if defined(VIDEO_HOLE) | 276 #if defined(VIDEO_HOLE) |
276 // Notify the player about the external surface, requesting it if necessary. | 277 // Notify the player about the external surface, requesting it if necessary. |
277 // |is_request| true if the player is requesting the external surface. | 278 // |is_request| true if the player is requesting the external surface. |
278 // |rect| the boundary rectangle of the video element. | 279 // |rect| the boundary rectangle of the video element. |
279 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 280 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
280 int /* player_id */, | 281 int /* player_id */, |
281 bool /* is_request */, | 282 bool /* is_request */, |
282 gfx::RectF /* rect */) | 283 gfx::RectF /* rect */) |
283 #endif // defined(VIDEO_HOLE) | 284 #endif // defined(VIDEO_HOLE) |
OLD | NEW |