| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Parameters to describe a media player | 64 // Parameters to describe a media player |
| 65 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) | 65 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) |
| 66 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) | 66 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) |
| 67 IPC_STRUCT_MEMBER(int, player_id) | 67 IPC_STRUCT_MEMBER(int, player_id) |
| 68 IPC_STRUCT_MEMBER(int, demuxer_client_id) | 68 IPC_STRUCT_MEMBER(int, demuxer_client_id) |
| 69 IPC_STRUCT_MEMBER(GURL, url) | 69 IPC_STRUCT_MEMBER(GURL, url) |
| 70 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 70 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
| 71 IPC_STRUCT_MEMBER(GURL, frame_url) | 71 IPC_STRUCT_MEMBER(GURL, frame_url) |
| 72 IPC_STRUCT_MEMBER(bool, allow_credentials) | 72 IPC_STRUCT_MEMBER(bool, allow_credentials) |
| 73 IPC_STRUCT_MEMBER(int, delegate_id) | 73 IPC_STRUCT_MEMBER(int, delegate_id) |
| 74 IPC_STRUCT_MEMBER(int, media_session_id) | |
| 75 IPC_STRUCT_END() | 74 IPC_STRUCT_END() |
| 76 | 75 |
| 77 // Chrome for Android seek message sequence is: | 76 // Chrome for Android seek message sequence is: |
| 78 // 1. Renderer->Browser MediaPlayerHostMsg_Seek | 77 // 1. Renderer->Browser MediaPlayerHostMsg_Seek |
| 79 // 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 |
| 80 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, | 79 // for seeks and browser MediaPlayerMsg_SeekRequests. With this message, |
| 81 // 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 |
| 82 // 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 |
| 83 // receipt of MediaPlayerMsg_SeekCompleted from the browser. | 82 // receipt of MediaPlayerMsg_SeekCompleted from the browser. |
| 84 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted | 83 // 2. Browser->Renderer MediaPlayerMsg_SeekCompleted |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 270 |
| 272 // Sent when the data was read from the ChunkDemuxer. | 271 // Sent when the data was read from the ChunkDemuxer. |
| 273 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 272 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 274 int /* demuxer_client_id */, | 273 int /* demuxer_client_id */, |
| 275 media::DemuxerData) | 274 media::DemuxerData) |
| 276 | 275 |
| 277 // Inform the media source player of changed media duration from demuxer. | 276 // Inform the media source player of changed media duration from demuxer. |
| 278 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, | 277 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, |
| 279 int /* demuxer_client_id */, | 278 int /* demuxer_client_id */, |
| 280 base::TimeDelta /* duration */) | 279 base::TimeDelta /* duration */) |
| OLD | NEW |