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

Unified Diff: net/quic/quic_unacked_packet_map.h

Issue 789103013: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_stream_factory.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 6c56dd6c13d9583caf95bbcdbfee88549f2caa6e..77d9093990dd9180fde5a183875170ce0477ab3c 100644
--- a/net/quic/quic_unacked_packet_map.h
+++ b/net/quic/quic_unacked_packet_map.h
@@ -141,9 +141,25 @@ class NET_EXPORT_PRIVATE QuicUnackedPacketMap {
void MaybeRemoveRetransmittableFrames(TransmissionInfo* transmission_info);
+ // Returns true if packet may be useful for an RTT measurement.
+ bool IsPacketUsefulForMeasuringRtt(QuicPacketSequenceNumber sequence_number,
+ const TransmissionInfo& info) const;
+
+ // Returns true if packet may be useful for congestion control purposes.
+ bool IsPacketUsefulForCongestionControl(
+ QuicPacketSequenceNumber sequence_number,
+ const TransmissionInfo& info) const;
+
+ // Returns true if packet may be associated with retransmittable data
+ // directly or through retransmissions.
+ bool IsPacketUsefulForRetransmittableData(
+ QuicPacketSequenceNumber sequence_number,
+ const TransmissionInfo& info) const;
+
// 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,
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698