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