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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.h

Issue 2491293002: Make FlexFEC packets paceable through RTPSender. (Closed)
Patch Set: Feedback response 3. Created 4 years, 1 month 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/source/rtp_sender.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.h b/webrtc/modules/rtp_rtcp/source/rtp_sender.h
index 09bcebc6403f013f576b1d49a54ca3c0dde5fb29..6d83ae54dcb1688efc5c07fceae634922e0a54a5 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.h
@@ -19,6 +19,7 @@
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/deprecation.h"
+#include "webrtc/base/optional.h"
#include "webrtc/base/random.h"
#include "webrtc/base/rate_statistics.h"
#include "webrtc/base/thread_annotations.h"
@@ -122,7 +123,8 @@ class RTPSender {
size_t RtpHeaderExtensionLength() const;
- bool TimeToSendPacket(uint16_t sequence_number,
+ bool TimeToSendPacket(uint32_t ssrc,
+ uint16_t sequence_number,
int64_t capture_time_ms,
bool retransmission,
int probe_cluster_id);
@@ -166,6 +168,8 @@ class RTPSender {
uint32_t SSRC() const;
+ rtc::Optional<uint32_t> FlexfecSsrc() const;
+
bool SendToNetwork(std::unique_ptr<RtpPacketToSend> packet,
StorageType storage,
RtpPacketSender::Priority priority);
@@ -285,6 +289,9 @@ class RTPSender {
PlayoutDelayOracle playout_delay_oracle_;
RtpPacketHistory packet_history_;
+ // TODO(brandtr): Remove |flexfec_packet_history_| when the FlexfecSender
+ // is hooked up to the PacedSender.
+ RtpPacketHistory flexfec_packet_history_;
// Statistics
rtc::CriticalSection statistics_crit_;

Powered by Google App Engine
This is Rietveld 408576698