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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 530343003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0828
Patch Set: Created 6 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: net/quic/congestion_control/tcp_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index 3e7115d3a8a32b0d59842c5d24be46a2c29412f5..9c01fa9c68ef9c4776d6e79a5c86a30a64a37436 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -88,19 +88,19 @@ void TcpCubicSender::OnIncomingQuicCongestionFeedbackFrame(
void TcpCubicSender::OnCongestionEvent(
bool rtt_updated,
QuicByteCount bytes_in_flight,
- const CongestionMap& acked_packets,
- const CongestionMap& lost_packets) {
+ const CongestionVector& acked_packets,
+ const CongestionVector& lost_packets) {
if (rtt_updated && InSlowStart() &&
hybrid_slow_start_.ShouldExitSlowStart(rtt_stats_->latest_rtt(),
rtt_stats_->min_rtt(),
congestion_window_)) {
slowstart_threshold_ = congestion_window_;
}
- for (CongestionMap::const_iterator it = lost_packets.begin();
+ for (CongestionVector::const_iterator it = lost_packets.begin();
it != lost_packets.end(); ++it) {
OnPacketLost(it->first, bytes_in_flight);
}
- for (CongestionMap::const_iterator it = acked_packets.begin();
+ for (CongestionVector::const_iterator it = acked_packets.begin();
it != acked_packets.end(); ++it) {
OnPacketAcked(it->first, it->second.bytes_sent, bytes_in_flight);
}
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698