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

Side by Side Diff: net/quic/congestion_control/send_algorithm_interface.h

Issue 1814843002: Remove the unused has_retransmittable_data argument from QuicSendAlgorithm::TimeUntilSend. No func… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116887287
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The pure virtual class for send side congestion control algorithm. 5 // The pure virtual class for send side congestion control algorithm.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Called when the retransmission timeout fires. Neither OnPacketAbandoned 73 // Called when the retransmission timeout fires. Neither OnPacketAbandoned
74 // nor OnPacketLost will be called for these packets. 74 // nor OnPacketLost will be called for these packets.
75 virtual void OnRetransmissionTimeout(bool packets_retransmitted) = 0; 75 virtual void OnRetransmissionTimeout(bool packets_retransmitted) = 0;
76 76
77 // Called when connection migrates and cwnd needs to be reset. 77 // Called when connection migrates and cwnd needs to be reset.
78 virtual void OnConnectionMigration() = 0; 78 virtual void OnConnectionMigration() = 0;
79 79
80 // Calculate the time until we can send the next packet. 80 // Calculate the time until we can send the next packet.
81 virtual QuicTime::Delta TimeUntilSend( 81 virtual QuicTime::Delta TimeUntilSend(
82 QuicTime now, 82 QuicTime now,
83 QuicByteCount bytes_in_flight, 83 QuicByteCount bytes_in_flight) const = 0;
84 HasRetransmittableData has_retransmittable_data) const = 0;
85 84
86 // The pacing rate of the send algorithm. May be zero if the rate is unknown. 85 // The pacing rate of the send algorithm. May be zero if the rate is unknown.
87 virtual QuicBandwidth PacingRate() const = 0; 86 virtual QuicBandwidth PacingRate() const = 0;
88 87
89 // What's the current estimated bandwidth in bytes per second. 88 // What's the current estimated bandwidth in bytes per second.
90 // Returns 0 when it does not have an estimate. 89 // Returns 0 when it does not have an estimate.
91 virtual QuicBandwidth BandwidthEstimate() const = 0; 90 virtual QuicBandwidth BandwidthEstimate() const = 0;
92 91
93 // Get the send algorithm specific retransmission delay, called RTO in TCP, 92 // Get the send algorithm specific retransmission delay, called RTO in TCP,
94 // Note 1: the caller is responsible for sanity checking this value. 93 // Note 1: the caller is responsible for sanity checking this value.
(...skipping 22 matching lines...) Expand all
117 // Called by the Session when we get a bandwidth estimate from the client. 116 // Called by the Session when we get a bandwidth estimate from the client.
118 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true. 117 // Uses the max bandwidth in the params if |max_bandwidth_resumption| is true.
119 virtual void ResumeConnectionState( 118 virtual void ResumeConnectionState(
120 const CachedNetworkParameters& cached_network_params, 119 const CachedNetworkParameters& cached_network_params,
121 bool max_bandwidth_resumption) = 0; 120 bool max_bandwidth_resumption) = 0;
122 }; 121 };
123 122
124 } // namespace net 123 } // namespace net
125 124
126 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 125 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender_test.cc ('k') | net/quic/congestion_control/send_algorithm_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698