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

Unified Diff: webrtc/modules/remote_bitrate_estimator/include/send_time_history.h

Issue 1419503004: Set send times in send time history via OnSentPacket. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comments addressed Created 5 years, 2 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/remote_bitrate_estimator/include/send_time_history.h
diff --git a/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h b/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h
index e104ba661dcf69e0103caa7b18ecd15b76f40799..92d2e28132d849810c69e90d9f0c41b140782ac5 100644
--- a/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h
+++ b/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h
@@ -21,11 +21,11 @@ namespace webrtc {
class SendTimeHistory {
public:
- explicit SendTimeHistory(int64_t packet_age_limit);
+ SendTimeHistory(Clock* clock, int64_t packet_age_limit);
virtual ~SendTimeHistory();
- void AddAndRemoveOld(const PacketInfo& packet);
- bool UpdateSendTime(uint16_t sequence_number, int64_t timestamp);
+ void AddAndRemoveOld(uint16_t sequence_number, size_t length, bool was_paced);
+ bool OnSentPacket(uint16_t sequence_number, int64_t timestamp);
// Look up PacketInfo for a sent packet, based on the sequence number, and
// populate all fields except for receive_time. The packet parameter must
// thus be non-null and have the sequence_number field set.
@@ -33,9 +33,10 @@ class SendTimeHistory {
void Clear();
private:
- void EraseOld(int64_t limit);
+ void EraseOld();
void UpdateOldestSequenceNumber();
+ Clock* const clock_;
const int64_t packet_age_limit_;
uint16_t oldest_sequence_number_; // Oldest may not be lowest.
std::map<uint16_t, PacketInfo> history_;
« no previous file with comments | « webrtc/call/congestion_controller.cc ('k') | webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698