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

Unified Diff: net/quic/congestion_control/send_algorithm_interface.h

Issue 288313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: implemented rch's comments Created 6 years, 7 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
Index: net/quic/congestion_control/send_algorithm_interface.h
diff --git a/net/quic/congestion_control/send_algorithm_interface.h b/net/quic/congestion_control/send_algorithm_interface.h
index 8412a043856205660d2ae815e9b96fd9bd2497fa..12cf8f691ef8738ebbc7f46388be91e4361cf61f 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,

Powered by Google App Engine
This is Rietveld 408576698