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