| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // Pacing information about this packet. | 336 // Pacing information about this packet. |
| 337 PacedPacketInfo pacing_info; | 337 PacedPacketInfo pacing_info; |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 class TransportFeedbackObserver { | 340 class TransportFeedbackObserver { |
| 341 public: | 341 public: |
| 342 TransportFeedbackObserver() {} | 342 TransportFeedbackObserver() {} |
| 343 virtual ~TransportFeedbackObserver() {} | 343 virtual ~TransportFeedbackObserver() {} |
| 344 | 344 |
| 345 // Note: Transport-wide sequence number as sequence number. | 345 // Note: Transport-wide sequence number as sequence number. |
| 346 virtual void AddPacket(uint16_t sequence_number, | 346 virtual void AddPacket(uint32_t ssrc, |
| 347 uint16_t sequence_number, |
| 347 size_t length, | 348 size_t length, |
| 348 const PacedPacketInfo& pacing_info) = 0; | 349 const PacedPacketInfo& pacing_info) = 0; |
| 349 | 350 |
| 350 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; | 351 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; |
| 351 | 352 |
| 352 virtual std::vector<PacketFeedback> GetTransportFeedbackVector() const = 0; | 353 virtual std::vector<PacketFeedback> GetTransportFeedbackVector() const = 0; |
| 353 }; | 354 }; |
| 354 | 355 |
| 356 class PacketFeedbackObserver { |
| 357 public: |
| 358 virtual ~PacketFeedbackObserver() = default; |
| 359 |
| 360 virtual void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) = 0; |
| 361 virtual void OnPacketFeedbackVector( |
| 362 const std::vector<PacketFeedback>& packet_feedback_vector) = 0; |
| 363 }; |
| 364 |
| 355 class RtcpRttStats { | 365 class RtcpRttStats { |
| 356 public: | 366 public: |
| 357 virtual void OnRttUpdate(int64_t rtt) = 0; | 367 virtual void OnRttUpdate(int64_t rtt) = 0; |
| 358 | 368 |
| 359 virtual int64_t LastProcessedRtt() const = 0; | 369 virtual int64_t LastProcessedRtt() const = 0; |
| 360 | 370 |
| 361 virtual ~RtcpRttStats() {} | 371 virtual ~RtcpRttStats() {} |
| 362 }; | 372 }; |
| 363 | 373 |
| 364 // Null object version of RtpFeedback. | 374 // Null object version of RtpFeedback. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 class TransportSequenceNumberAllocator { | 443 class TransportSequenceNumberAllocator { |
| 434 public: | 444 public: |
| 435 TransportSequenceNumberAllocator() {} | 445 TransportSequenceNumberAllocator() {} |
| 436 virtual ~TransportSequenceNumberAllocator() {} | 446 virtual ~TransportSequenceNumberAllocator() {} |
| 437 | 447 |
| 438 virtual uint16_t AllocateSequenceNumber() = 0; | 448 virtual uint16_t AllocateSequenceNumber() = 0; |
| 439 }; | 449 }; |
| 440 | 450 |
| 441 } // namespace webrtc | 451 } // namespace webrtc |
| 442 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 452 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
| OLD | NEW |