summaryrefslogtreecommitdiffstats
path: root/net/quic/congestion_control/send_algorithm_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/congestion_control/send_algorithm_interface.h')
-rw-r--r--net/quic/congestion_control/send_algorithm_interface.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/quic/congestion_control/send_algorithm_interface.h b/net/quic/congestion_control/send_algorithm_interface.h
index 8412a043..12cf8f6 100644
--- a/net/quic/congestion_control/send_algorithm_interface.h
+++ b/net/quic/congestion_control/send_algorithm_interface.h
@@ -51,10 +51,11 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface {
const CongestionMap& acked_packets,
const CongestionMap& lost_packets) = 0;
- // Inform that we sent x bytes to the wire, and if that was a retransmission.
- // Returns true if the packet should be tracked by the congestion manager,
- // false otherwise. This is used by implementations such as tcp_cubic_sender
- // that do not count outgoing ACK packets against the congestion window.
+ // Inform that we sent |bytes| to the wire, and if the packet is
+ // retransmittable. Returns true if the packet should be tracked by the
+ // congestion manager and included in bytes_in_flight, false otherwise.
+ // |bytes_in_flight| is the number of bytes in flight before the packet was
+ // sent.
// Note: this function must be called for every packet sent to the wire.
virtual bool OnPacketSent(QuicTime sent_time,
QuicByteCount bytes_in_flight,