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_NET_CAST_TRANSPORT_CONFIG_H_ | 5 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Returns the number of bytes ever sent. | 138 // Returns the number of bytes ever sent. |
139 virtual int64_t GetBytesSent() = 0; | 139 virtual int64_t GetBytesSent() = 0; |
140 | 140 |
141 virtual ~PacketSender() {} | 141 virtual ~PacketSender() {} |
142 }; | 142 }; |
143 | 143 |
144 struct RtcpSenderInfo { | 144 struct RtcpSenderInfo { |
145 RtcpSenderInfo(); | 145 RtcpSenderInfo(); |
146 ~RtcpSenderInfo(); | 146 ~RtcpSenderInfo(); |
147 // First three members are used for lipsync. | 147 // First three members are used for lipsync. |
148 // First two members are used for rtt. | 148 // Last two members are used for rtt. |
149 uint32_t ntp_seconds; | 149 uint32_t ntp_seconds; |
150 uint32_t ntp_fraction; | 150 uint32_t ntp_fraction; |
151 RtpTimeTicks rtp_timestamp; | 151 RtpTimeTicks rtp_timestamp; |
152 uint32_t send_packet_count; | 152 uint32_t send_packet_count; |
153 size_t send_octet_count; | 153 size_t send_octet_count; |
154 }; | 154 }; |
155 | 155 |
156 struct RtcpReportBlock { | 156 struct RtcpReportBlock { |
157 RtcpReportBlock(); | 157 RtcpReportBlock(); |
158 ~RtcpReportBlock(); | 158 ~RtcpReportBlock(); |
(...skipping 19 matching lines...) Expand all Loading... |
178 lhs.ntp_fraction == rhs.ntp_fraction && | 178 lhs.ntp_fraction == rhs.ntp_fraction && |
179 lhs.rtp_timestamp == rhs.rtp_timestamp && | 179 lhs.rtp_timestamp == rhs.rtp_timestamp && |
180 lhs.send_packet_count == rhs.send_packet_count && | 180 lhs.send_packet_count == rhs.send_packet_count && |
181 lhs.send_octet_count == rhs.send_octet_count; | 181 lhs.send_octet_count == rhs.send_octet_count; |
182 } | 182 } |
183 | 183 |
184 } // namespace cast | 184 } // namespace cast |
185 } // namespace media | 185 } // namespace media |
186 | 186 |
187 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ | 187 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ |
OLD | NEW |