Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h

Issue 2638083002: Attach TransportFeedbackPacketLossTracker to ANA (PLR only) (Closed)
Patch Set: Fix UT Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Pacing information about this packet. 335 // Pacing information about this packet.
336 PacedPacketInfo pacing_info; 336 PacedPacketInfo pacing_info;
337 }; 337 };
338 338
339 class TransportFeedbackObserver { 339 class TransportFeedbackObserver {
340 public: 340 public:
341 TransportFeedbackObserver() {} 341 TransportFeedbackObserver() {}
342 virtual ~TransportFeedbackObserver() {} 342 virtual ~TransportFeedbackObserver() {}
343 343
344 // Note: Transport-wide sequence number as sequence number. 344 // Note: Transport-wide sequence number as sequence number.
345 virtual void AddPacket(uint16_t sequence_number, 345 virtual void AddPacket(uint32_t ssrc,
346 uint16_t sequence_number,
346 size_t length, 347 size_t length,
347 const PacedPacketInfo& pacing_info) = 0; 348 const PacedPacketInfo& pacing_info) = 0;
348 349
349 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0; 350 virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0;
350 351
351 virtual std::vector<PacketFeedback> GetTransportFeedbackVector() const = 0; 352 virtual std::vector<PacketFeedback> GetTransportFeedbackVector() const = 0;
352 }; 353 };
353 354
355 class PacketFeedbackObserver {
356 public:
357 virtual ~PacketFeedbackObserver() = default;
358
359 virtual void OnPacketAdded(uint32_t ssrc, uint16_t seq_num) = 0;
360 virtual void OnPacketFeedbackVector(
361 const std::vector<PacketFeedback>& packet_feedback_vector) = 0;
362 };
363
354 class RtcpRttStats { 364 class RtcpRttStats {
355 public: 365 public:
356 virtual void OnRttUpdate(int64_t rtt) = 0; 366 virtual void OnRttUpdate(int64_t rtt) = 0;
357 367
358 virtual int64_t LastProcessedRtt() const = 0; 368 virtual int64_t LastProcessedRtt() const = 0;
359 369
360 virtual ~RtcpRttStats() {} 370 virtual ~RtcpRttStats() {}
361 }; 371 };
362 372
363 // Null object version of RtpFeedback. 373 // Null object version of RtpFeedback.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 class TransportSequenceNumberAllocator { 442 class TransportSequenceNumberAllocator {
433 public: 443 public:
434 TransportSequenceNumberAllocator() {} 444 TransportSequenceNumberAllocator() {}
435 virtual ~TransportSequenceNumberAllocator() {} 445 virtual ~TransportSequenceNumberAllocator() {}
436 446
437 virtual uint16_t AllocateSequenceNumber() = 0; 447 virtual uint16_t AllocateSequenceNumber() = 0;
438 }; 448 };
439 449
440 } // namespace webrtc 450 } // namespace webrtc
441 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ 451 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698