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

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

Issue 684043002: Protect against the divide by zero error in QuicBandwidth::TransferTime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_QUIC_connection_option_NTLP_78465187
Patch Set: Created 6 years, 2 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 | « no previous file | net/quic/quic_bandwidth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4a116934fb4462c6dd536529b25bc8162c833c26..fd05838ac6a15330200e70b9d1f58966ee86ff96 100644
--- a/net/quic/congestion_control/send_algorithm_interface.h
+++ b/net/quic/congestion_control/send_algorithm_interface.h
@@ -82,6 +82,7 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface {
QuicByteCount bytes_in_flight,
HasRetransmittableData has_retransmittable_data) const = 0;
+ // The pacing rate of the send algorithm. May be zero if the rate is unknown.
virtual QuicBandwidth PacingRate() const = 0;
// What's the current estimated bandwidth in bytes per second.
« no previous file with comments | « no previous file | net/quic/quic_bandwidth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698