| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 the Cast transport API. | 5 // IPC messages for the Cast transport API. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "media/cast/cast_sender.h" | 9 #include "media/cast/cast_sender.h" |
| 10 #include "media/cast/rtcp/rtcp_defines.h" | 10 #include "media/cast/rtcp/rtcp_defines.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 IPC_STRUCT_TRAITS_MEMBER(frame_status) | 57 IPC_STRUCT_TRAITS_MEMBER(frame_status) |
| 58 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) | 58 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) |
| 59 IPC_STRUCT_TRAITS_END() | 59 IPC_STRUCT_TRAITS_END() |
| 60 | 60 |
| 61 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) | 61 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::RtpConfig) |
| 62 IPC_STRUCT_TRAITS_MEMBER(history_ms) | 62 IPC_STRUCT_TRAITS_MEMBER(history_ms) |
| 63 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) | 63 IPC_STRUCT_TRAITS_MEMBER(max_delay_ms) |
| 64 IPC_STRUCT_TRAITS_MEMBER(payload_type) | 64 IPC_STRUCT_TRAITS_MEMBER(payload_type) |
| 65 IPC_STRUCT_TRAITS_END() | 65 IPC_STRUCT_TRAITS_END() |
| 66 | 66 |
| 67 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportConfig) | 67 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportBaseConfig) |
| 68 IPC_STRUCT_TRAITS_MEMBER(receiver_endpoint) | 68 IPC_STRUCT_TRAITS_MEMBER(ssrc) |
| 69 IPC_STRUCT_TRAITS_MEMBER(local_endpoint) | 69 IPC_STRUCT_TRAITS_MEMBER(rtp_config) |
| 70 IPC_STRUCT_TRAITS_MEMBER(audio_ssrc) | |
| 71 IPC_STRUCT_TRAITS_MEMBER(video_ssrc) | |
| 72 IPC_STRUCT_TRAITS_MEMBER(video_codec) | |
| 73 IPC_STRUCT_TRAITS_MEMBER(audio_codec) | |
| 74 IPC_STRUCT_TRAITS_MEMBER(audio_frequency) | |
| 75 IPC_STRUCT_TRAITS_MEMBER(audio_channels) | |
| 76 IPC_STRUCT_TRAITS_MEMBER(audio_rtp_config) | |
| 77 IPC_STRUCT_TRAITS_MEMBER(video_rtp_config) | |
| 78 IPC_STRUCT_TRAITS_MEMBER(aes_key) | 70 IPC_STRUCT_TRAITS_MEMBER(aes_key) |
| 79 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask) | 71 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask) |
| 80 IPC_STRUCT_TRAITS_END() | 72 IPC_STRUCT_TRAITS_END() |
| 81 | 73 |
| 74 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportAudioConfig) |
| 75 IPC_STRUCT_TRAITS_MEMBER(base) |
| 76 IPC_STRUCT_TRAITS_MEMBER(codec) |
| 77 IPC_STRUCT_TRAITS_MEMBER(frequency) |
| 78 IPC_STRUCT_TRAITS_MEMBER(channels) |
| 79 IPC_STRUCT_TRAITS_END() |
| 80 |
| 81 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::CastTransportVideoConfig) |
| 82 IPC_STRUCT_TRAITS_MEMBER(base) |
| 83 IPC_STRUCT_TRAITS_MEMBER(codec) |
| 84 IPC_STRUCT_TRAITS_END() |
| 85 |
| 82 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) | 86 IPC_STRUCT_TRAITS_BEGIN(media::cast::transport::SendRtcpFromRtpSenderData) |
| 83 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) | 87 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags) |
| 84 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) | 88 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc) |
| 85 IPC_STRUCT_TRAITS_MEMBER(c_name) | 89 IPC_STRUCT_TRAITS_MEMBER(c_name) |
| 86 IPC_STRUCT_TRAITS_END() | 90 IPC_STRUCT_TRAITS_END() |
| 87 | 91 |
| 88 | 92 |
| 89 // Cast messages sent from the browser to the renderer. | 93 // Cast messages sent from the browser to the renderer. |
| 90 | 94 |
| 91 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, | 95 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, |
| 92 int32 /* channel_id */, | 96 int32 /* channel_id */, |
| 93 media::cast::Packet /* packet */); | 97 media::cast::Packet /* packet */); |
| 94 | 98 |
| 95 IPC_MESSAGE_CONTROL2( | 99 IPC_MESSAGE_CONTROL2( |
| 96 CastMsg_NotifyStatusChange, | 100 CastMsg_NotifyStatusChange, |
| 97 int32 /* channel_id */, | 101 int32 /* channel_id */, |
| 98 media::cast::transport::CastTransportStatus /* status */); | 102 media::cast::transport::CastTransportStatus /* status */); |
| 99 | 103 |
| 100 IPC_MESSAGE_CONTROL5( | 104 IPC_MESSAGE_CONTROL5( |
| 101 CastMsg_RtpStatistics, | 105 CastMsg_RtpStatistics, |
| 102 int32 /* channel_id */, | 106 int32 /* channel_id */, |
| 103 bool /* audio */, | 107 bool /* audio */, |
| 104 media::cast::transport::RtcpSenderInfo /* sender_info */, | 108 media::cast::transport::RtcpSenderInfo /* sender_info */, |
| 105 base::TimeTicks /* time_sent */, | 109 base::TimeTicks /* time_sent */, |
| 106 uint32 /* rtp_timestamp */); | 110 uint32 /* rtp_timestamp */); |
| 107 | 111 |
| 108 | 112 |
| 109 // Cast messages sent from the renderer to the browser. | 113 // Cast messages sent from the renderer to the browser. |
| 110 | 114 |
| 115 IPC_MESSAGE_CONTROL2( |
| 116 CastHostMsg_InitializeAudio, |
| 117 int32 /*channel_id*/, |
| 118 media::cast::transport::CastTransportAudioConfig /*config*/) |
| 119 |
| 120 IPC_MESSAGE_CONTROL2( |
| 121 CastHostMsg_InitializeVideo, |
| 122 int32 /*channel_id*/, |
| 123 media::cast::transport::CastTransportVideoConfig /*config*/) |
| 124 |
| 111 IPC_MESSAGE_CONTROL3( | 125 IPC_MESSAGE_CONTROL3( |
| 112 CastHostMsg_InsertCodedAudioFrame, | 126 CastHostMsg_InsertCodedAudioFrame, |
| 113 int32 /* channel_id */, | 127 int32 /* channel_id */, |
| 114 media::cast::transport::EncodedAudioFrame /* audio_frame */, | 128 media::cast::transport::EncodedAudioFrame /* audio_frame */, |
| 115 base::TimeTicks /* recorded_time */) | 129 base::TimeTicks /* recorded_time */) |
| 116 | 130 |
| 117 IPC_MESSAGE_CONTROL3( | 131 IPC_MESSAGE_CONTROL3( |
| 118 CastHostMsg_InsertCodedVideoFrame, | 132 CastHostMsg_InsertCodedVideoFrame, |
| 119 int32 /* channel_id */, | 133 int32 /* channel_id */, |
| 120 media::cast::transport::EncodedVideoFrame /* video_frame */, | 134 media::cast::transport::EncodedVideoFrame /* video_frame */, |
| 121 base::TimeTicks /* recorded_time */) | 135 base::TimeTicks /* recorded_time */) |
| 122 | 136 |
| 123 IPC_MESSAGE_CONTROL5( | 137 IPC_MESSAGE_CONTROL5( |
| 124 CastHostMsg_SendRtcpFromRtpSender, | 138 CastHostMsg_SendRtcpFromRtpSender, |
| 125 int32 /* channel_id */, | 139 int32 /* channel_id */, |
| 126 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, | 140 media::cast::transport::SendRtcpFromRtpSenderData /* flags, ssrc, name */, |
| 127 media::cast::transport::RtcpSenderInfo /* sender_info */, | 141 media::cast::transport::RtcpSenderInfo /* sender_info */, |
| 128 media::cast::transport::RtcpDlrrReportBlock /* dlrr */, | 142 media::cast::transport::RtcpDlrrReportBlock /* dlrr */, |
| 129 media::cast::transport::RtcpSenderLogMessage /* sender_log */) | 143 media::cast::transport::RtcpSenderLogMessage /* sender_log */) |
| 130 | 144 |
| 131 IPC_MESSAGE_CONTROL3( | 145 IPC_MESSAGE_CONTROL3( |
| 132 CastHostMsg_ResendPackets, | 146 CastHostMsg_ResendPackets, |
| 133 int32 /* channel_id */, | 147 int32 /* channel_id */, |
| 134 bool /* is_audio */, | 148 bool /* is_audio */, |
| 135 media::cast::MissingFramesAndPacketsMap /* missing_packets */) | 149 media::cast::MissingFramesAndPacketsMap /* missing_packets */) |
| 136 | 150 |
| 137 IPC_MESSAGE_CONTROL2( | 151 IPC_MESSAGE_CONTROL3( |
| 138 CastHostMsg_New, | 152 CastHostMsg_New, |
| 139 int32 /* channel_id */, | 153 int32 /* channel_id */, |
| 140 media::cast::transport::CastTransportConfig /* config */); | 154 net::IPEndPoint /*local_end_point*/, |
| 155 net::IPEndPoint /*remote_end_point*/); |
| 141 | 156 |
| 142 IPC_MESSAGE_CONTROL1( | 157 IPC_MESSAGE_CONTROL1( |
| 143 CastHostMsg_Delete, | 158 CastHostMsg_Delete, |
| 144 int32 /* channel_id */); | 159 int32 /* channel_id */); |
| OLD | NEW |