| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 int probe_cluster_id; | 297 int probe_cluster_id; |
| 298 }; | 298 }; |
| 299 | 299 |
| 300 class TransportFeedbackObserver { | 300 class TransportFeedbackObserver { |
| 301 public: | 301 public: |
| 302 TransportFeedbackObserver() {} | 302 TransportFeedbackObserver() {} |
| 303 virtual ~TransportFeedbackObserver() {} | 303 virtual ~TransportFeedbackObserver() {} |
| 304 | 304 |
| 305 // Note: Transport-wide sequence number as sequence number. Arrival time | 305 // Note: Transport-wide sequence number as sequence number. Arrival time |
| 306 // must be set to 0. | 306 // must be set to 0. |
| 307 virtual void AddPacket(uint16_t sequence_number, | 307 virtual void AddPacket(uint32_t ssrc, |
| 308 uint16_t sequence_number, |
| 308 size_t length, | 309 size_t length, |
| 309 int probe_cluster_id) = 0; | 310 int probe_cluster_id) = 0; |
| 310 | 311 |
| 311 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; | 312 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; |
| 312 | 313 |
| 313 virtual std::vector<PacketInfo> GetTransportFeedbackVector() const = 0; | 314 virtual std::vector<PacketInfo> GetTransportFeedbackVector() const = 0; |
| 314 }; | 315 }; |
| 315 | 316 |
| 317 class TransportFeedbackAdapterObserver { |
| 318 public: |
| 319 TransportFeedbackAdapterObserver() = default; |
| 320 virtual ~TransportFeedbackAdapterObserver() = default; |
| 321 |
| 322 virtual void OnPacketAdded(uint32_t ssrc, |
| 323 uint16_t transport_sequence_number) = 0; |
| 324 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; |
| 325 }; |
| 326 |
| 316 class RtcpRttStats { | 327 class RtcpRttStats { |
| 317 public: | 328 public: |
| 318 virtual void OnRttUpdate(int64_t rtt) = 0; | 329 virtual void OnRttUpdate(int64_t rtt) = 0; |
| 319 | 330 |
| 320 virtual int64_t LastProcessedRtt() const = 0; | 331 virtual int64_t LastProcessedRtt() const = 0; |
| 321 | 332 |
| 322 virtual ~RtcpRttStats() {} | 333 virtual ~RtcpRttStats() {} |
| 323 }; | 334 }; |
| 324 | 335 |
| 325 // Null object version of RtpFeedback. | 336 // Null object version of RtpFeedback. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 class TransportSequenceNumberAllocator { | 405 class TransportSequenceNumberAllocator { |
| 395 public: | 406 public: |
| 396 TransportSequenceNumberAllocator() {} | 407 TransportSequenceNumberAllocator() {} |
| 397 virtual ~TransportSequenceNumberAllocator() {} | 408 virtual ~TransportSequenceNumberAllocator() {} |
| 398 | 409 |
| 399 virtual uint16_t AllocateSequenceNumber() = 0; | 410 virtual uint16_t AllocateSequenceNumber() = 0; |
| 400 }; | 411 }; |
| 401 | 412 |
| 402 } // namespace webrtc | 413 } // namespace webrtc |
| 403 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 414 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
| OLD | NEW |