| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 IPC_STRUCT_TRAITS_MEMBER(key_id) | 53 IPC_STRUCT_TRAITS_MEMBER(key_id) |
| 54 IPC_STRUCT_TRAITS_MEMBER(iv) | 54 IPC_STRUCT_TRAITS_MEMBER(iv) |
| 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_MAX_VALUE(MediaPlayerHostMsg_Initialize_Type, |
| 64 MEDIA_PLAYER_TYPE_LAST) |
| 64 | 65 |
| 65 // Parameters to describe a media player | 66 // Parameters to describe a media player |
| 66 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) | 67 IPC_STRUCT_BEGIN(MediaPlayerHostMsg_Initialize_Params) |
| 67 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) | 68 IPC_STRUCT_MEMBER(MediaPlayerHostMsg_Initialize_Type, type) |
| 68 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) | 69 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, metafile_data_handle) |
| 69 IPC_STRUCT_MEMBER(int, player_id) | 70 IPC_STRUCT_MEMBER(int, player_id) |
| 70 IPC_STRUCT_MEMBER(int, demuxer_client_id) | 71 IPC_STRUCT_MEMBER(int, demuxer_client_id) |
| 71 IPC_STRUCT_MEMBER(GURL, url) | 72 IPC_STRUCT_MEMBER(GURL, url) |
| 72 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 73 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
| 73 IPC_STRUCT_MEMBER(GURL, frame_url) | 74 IPC_STRUCT_MEMBER(GURL, frame_url) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 286 |
| 286 #if defined(VIDEO_HOLE) | 287 #if defined(VIDEO_HOLE) |
| 287 // Notify the player about the external surface, requesting it if necessary. | 288 // Notify the player about the external surface, requesting it if necessary. |
| 288 // |is_request| true if the player is requesting the external surface. | 289 // |is_request| true if the player is requesting the external surface. |
| 289 // |rect| the boundary rectangle of the video element. | 290 // |rect| the boundary rectangle of the video element. |
| 290 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 291 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 291 int /* player_id */, | 292 int /* player_id */, |
| 292 bool /* is_request */, | 293 bool /* is_request */, |
| 293 gfx::RectF /* rect */) | 294 gfx::RectF /* rect */) |
| 294 #endif // defined(VIDEO_HOLE) | 295 #endif // defined(VIDEO_HOLE) |
| OLD | NEW |