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

Unified Diff: webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h

Issue 1329083005: Add TransportFeedback adapter, adapting remote feedback to bwe estiamtor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
index 7642285caf152967f8a57542a2ea9803c35b6d55..f5897f742df62ef75aaf043c65d0ad56617ed121 100644
--- a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
+++ b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
@@ -24,6 +24,9 @@
#define TIMEOUT_SEI_MESSAGES_MS 30000 // in milliseconds
namespace webrtc {
+namespace rtcp {
+class TransportFeedback;
+}
const int kVideoPayloadTypeFrequency = 90000;
@@ -293,15 +296,20 @@ class RtcpBandwidthObserver {
virtual ~RtcpBandwidthObserver() {}
};
-class SendTimeObserver {
+class TransportFeedbackObserver {
public:
- SendTimeObserver() {}
- virtual ~SendTimeObserver() {}
+ TransportFeedbackObserver() {}
+ virtual ~TransportFeedbackObserver() {}
// Transport-wide sequence number and timestamp (system time in milliseconds),
- // of when the packet was put on the wire.
+ // of when the packet was put on the wire, size of packet in bytes, and
+ // whether the packet was sent through the paced sender or not.
virtual void OnPacketSent(uint16_t transport_sequence_number,
- int64_t send_time) = 0;
+ int64_t send_time,
+ size_t size,
+ bool was_paced) = 0;
+
+ virtual void OnTransportFeedback(const rtcp::TransportFeedback& feedback) = 0;
};
class RtcpRttStats {

Powered by Google App Engine
This is Rietveld 408576698