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

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

Issue 1811043002: Landing Recent QUIC changes until 2016-03-15 16:26 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an export clause. Created 4 years, 9 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_base.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender_base.cc b/net/quic/congestion_control/tcp_cubic_sender_base.cc
index deb5a4f35dea4dadc967e9e0af0881db0ada678e..5d8478a43c8eb1d8bc66ac608cba23b04d237aba 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_base.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_base.cc
@@ -125,7 +125,7 @@ void TcpCubicSenderBase::OnCongestionEvent(
}
for (CongestionVector::const_iterator it = lost_packets.begin();
it != lost_packets.end(); ++it) {
- OnPacketLost(it->first, bytes_in_flight);
+ OnPacketLost(it->first, it->second, bytes_in_flight);
}
for (CongestionVector::const_iterator it = acked_packets.begin();
it != acked_packets.end(); ++it) {
@@ -175,13 +175,7 @@ bool TcpCubicSenderBase::OnPacketSent(
QuicTime::Delta TcpCubicSenderBase::TimeUntilSend(
QuicTime /* now */,
- QuicByteCount bytes_in_flight,
- HasRetransmittableData has_retransmittable_data) const {
- if (has_retransmittable_data == NO_RETRANSMITTABLE_DATA) {
- DCHECK(!FLAGS_quic_respect_send_alarm2);
- // For TCP we can always send an ACK immediately.
- return QuicTime::Delta::Zero();
- }
+ QuicByteCount bytes_in_flight) const {
if (InRecovery()) {
// PRR is used when in recovery.
return prr_.TimeUntilSend(GetCongestionWindow(), bytes_in_flight,
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_base.h ('k') | net/quic/congestion_control/tcp_cubic_sender_bytes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698