| 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 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 // This is only needed because IPC messages don't support more than | 145 // This is only needed because IPC messages don't support more than |
| 146 // 5 arguments. | 146 // 5 arguments. |
| 147 struct SendRtcpFromRtpSenderData { | 147 struct SendRtcpFromRtpSenderData { |
| 148 SendRtcpFromRtpSenderData(); | 148 SendRtcpFromRtpSenderData(); |
| 149 ~SendRtcpFromRtpSenderData(); | 149 ~SendRtcpFromRtpSenderData(); |
| 150 uint32 packet_type_flags; | 150 uint32 packet_type_flags; |
| 151 uint32 sending_ssrc; | 151 uint32 sending_ssrc; |
| 152 std::string c_name; | 152 std::string c_name; |
| 153 uint32 ntp_seconds; |
| 154 uint32 ntp_fraction; |
| 155 uint32 rtp_timestamp; |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 inline bool operator==(RtcpSenderInfo lhs, RtcpSenderInfo rhs) { | 158 inline bool operator==(RtcpSenderInfo lhs, RtcpSenderInfo rhs) { |
| 156 return lhs.ntp_seconds == rhs.ntp_seconds && | 159 return lhs.ntp_seconds == rhs.ntp_seconds && |
| 157 lhs.ntp_fraction == rhs.ntp_fraction && | 160 lhs.ntp_fraction == rhs.ntp_fraction && |
| 158 lhs.rtp_timestamp == rhs.rtp_timestamp && | 161 lhs.rtp_timestamp == rhs.rtp_timestamp && |
| 159 lhs.send_packet_count == rhs.send_packet_count && | 162 lhs.send_packet_count == rhs.send_packet_count && |
| 160 lhs.send_octet_count == rhs.send_octet_count; | 163 lhs.send_octet_count == rhs.send_octet_count; |
| 161 } | 164 } |
| 162 | 165 |
| 163 } // namespace transport | 166 } // namespace transport |
| 164 } // namespace cast | 167 } // namespace cast |
| 165 } // namespace media | 168 } // namespace media |
| 166 | 169 |
| 167 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 170 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| OLD | NEW |