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

Unified Diff: webrtc/modules/pacing/paced_sender.h

Issue 2825333002: Replace first_packet_sent_ms_ in Call. (Closed)
Patch Set: Created 3 years, 8 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/pacing/paced_sender.h
diff --git a/webrtc/modules/pacing/paced_sender.h b/webrtc/modules/pacing/paced_sender.h
index 3b5fe2e45e03459d5a4bc4397c77161598c44f69..8937601e03989ea0b808e5eb89237dd18802327c 100644
--- a/webrtc/modules/pacing/paced_sender.h
+++ b/webrtc/modules/pacing/paced_sender.h
@@ -119,6 +119,10 @@ class PacedSender : public Module, public RtpPacketSender {
virtual size_t QueueSizePackets() const;
+ // Returns the time when the first packet was sent, or -1 if no packet is
+ // sent.
+ virtual int64_t FirstSentPacketTimeMs() const;
+
// Returns the number of milliseconds it will take to send the current
// packets in the queue, given the current size and bitrate, ignoring prio.
virtual int64_t ExpectedQueueTimeMs() const;
@@ -184,6 +188,7 @@ class PacedSender : public Module, public RtpPacketSender {
uint32_t pacing_bitrate_kbps_ GUARDED_BY(critsect_);
int64_t time_last_update_us_ GUARDED_BY(critsect_);
+ int64_t first_sent_packet_ms_ GUARDED_BY(critsect_);
std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_);
uint64_t packet_counter_;
« no previous file with comments | « webrtc/modules/congestion_controller/send_side_congestion_controller.cc ('k') | webrtc/modules/pacing/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698