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

Unified Diff: net/quic/quic_unacked_packet_map.cc

Issue 355573007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added NET_EXPORT_PRIVATE for ContainsQuicTag Created 6 years, 6 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
« no previous file with comments | « net/quic/quic_unacked_packet_map.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map.cc
diff --git a/net/quic/quic_unacked_packet_map.cc b/net/quic/quic_unacked_packet_map.cc
index e9dd1368f6aa7dc062b058a7b77fa5c8eb3b1231..563b53dfe92d1da8dd141d729b36def31d342aa4 100644
--- a/net/quic/quic_unacked_packet_map.cc
+++ b/net/quic/quic_unacked_packet_map.cc
@@ -320,4 +320,21 @@ void QuicUnackedPacketMap::SetSent(QuicPacketSequenceNumber sequence_number,
}
}
+void QuicUnackedPacketMap::RestoreInFlight(
+ QuicPacketSequenceNumber sequence_number) {
+ DCHECK_LT(0u, sequence_number);
+ UnackedPacketMap::iterator it = unacked_packets_.find(sequence_number);
+ if (it == unacked_packets_.end()) {
+ LOG(DFATAL) << "OnPacketSent called for packet that is not unacked: "
+ << sequence_number;
+ return;
+ }
+ DCHECK(!it->second.in_flight);
+ DCHECK_NE(0u, it->second.bytes_sent);
+ DCHECK(it->second.sent_time.IsInitialized());
+
+ bytes_in_flight_ += it->second.bytes_sent;
+ it->second.in_flight = true;
+}
+
} // namespace net
« no previous file with comments | « net/quic/quic_unacked_packet_map.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698