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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 561513003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 293c7b6a16586adf715e9addec43ad505a45eafa..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;
@@ -139,6 +139,10 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
// Returns true if the packet no longer has a purpose in the map.
bool IsPacketUseless(QuicPacketSequenceNumber sequence_number,
const TransmissionInfo& info) const;
+ // Returns true if the packet is useless or it's only purpose is RTT
+ // measurement, and it's old enough that is unlikely to ever happen.
+ bool IsPacketRemovable(QuicPacketSequenceNumber sequence_number,
+ const TransmissionInfo& info) const;
QuicPacketSequenceNumber largest_sent_packet_;
QuicPacketSequenceNumber largest_observed_;
« 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