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

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

Issue 2918323002: Add functionality which limits the number of bytes on the network. (Closed)
Patch Set: . Created 3 years, 5 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 026670acbf3c0c11a2c68ad227d90d1f43a4ff3b..9581f3e36b06478c7aee51dfbf0b154420bfad71 100644
--- a/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h
+++ b/webrtc/modules/remote_bitrate_estimator/include/send_time_history.h
@@ -38,11 +38,15 @@ class SendTimeHistory {
// thus be non-null and have the sequence_number field set.
bool GetFeedback(PacketFeedback* packet_feedback, bool remove);
+ size_t GetOutstandingBytes(uint16_t local_net_id,
+ uint16_t remote_net_id) const;
+
private:
const Clock* const clock_;
const int64_t packet_age_limit_ms_;
SequenceNumberUnwrapper seq_num_unwrapper_;
std::map<int64_t, PacketFeedback> history_;
+ int64_t latest_acked_seq_num_;
philipel 2017/08/02 15:35:16 Use Optional.
stefan-webrtc 2017/08/04 09:50:00 Done.
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendTimeHistory);
};

Powered by Google App Engine
This is Rietveld 408576698