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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 556103002: Simplify QuicUnackedPacketMap's RemovePreviousTransmissions by always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@discard_old_packets_74814618
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
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map.h
diff --git a/net/quic/quic_unacked_packet_map.h b/net/quic/quic_unacked_packet_map.h
index a7a0a6cc54264ec5207bf77f84b18c98623b1926..51cc6346df24b393caca4800fdd0a121947da799 100644
--- a/net/quic/quic_unacked_packet_map.h
+++ b/net/quic/quic_unacked_packet_map.h
@@ -86,9 +86,9 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
// Restores the in flight status for a packet that was previously sent.
void RestoreInFlight(QuicPacketSequenceNumber sequence_number);
- // Clears up to |num_to_clear| previous transmissions in order to make room
- // in the ack frame for new acks.
- void ClearPreviousRetransmissions(size_t num_to_clear);
+ // Clears all previous transmissions in order to make room in the ack frame
+ // for newly acked packets.
+ void ClearAllPreviousRetransmissions();
typedef std::deque<TransmissionInfo> UnackedPacketMap;
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698