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

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

Issue 968513002: Land Recent QUIC Changes until 2/21/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed const from members of TransmissionInfo struct. Created 5 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual bool OnPacketSent(QuicTime sent_time, 65 virtual bool OnPacketSent(QuicTime sent_time,
66 QuicByteCount bytes_in_flight, 66 QuicByteCount bytes_in_flight,
67 QuicPacketSequenceNumber sequence_number, 67 QuicPacketSequenceNumber sequence_number,
68 QuicByteCount bytes, 68 QuicByteCount bytes,
69 HasRetransmittableData is_retransmittable) = 0; 69 HasRetransmittableData is_retransmittable) = 0;
70 70
71 // Called when the retransmission timeout fires. Neither OnPacketAbandoned 71 // Called when the retransmission timeout fires. Neither OnPacketAbandoned
72 // nor OnPacketLost will be called for these packets. 72 // nor OnPacketLost will be called for these packets.
73 virtual void OnRetransmissionTimeout(bool packets_retransmitted) = 0; 73 virtual void OnRetransmissionTimeout(bool packets_retransmitted) = 0;
74 74
75 // Called when the last retransmission timeout was spurious.
76 virtual void RevertRetransmissionTimeout() = 0;
77
78 // Calculate the time until we can send the next packet. 75 // Calculate the time until we can send the next packet.
79 virtual QuicTime::Delta TimeUntilSend( 76 virtual QuicTime::Delta TimeUntilSend(
80 QuicTime now, 77 QuicTime now,
81 QuicByteCount bytes_in_flight, 78 QuicByteCount bytes_in_flight,
82 HasRetransmittableData has_retransmittable_data) const = 0; 79 HasRetransmittableData has_retransmittable_data) const = 0;
83 80
84 // The pacing rate of the send algorithm. May be zero if the rate is unknown. 81 // The pacing rate of the send algorithm. May be zero if the rate is unknown.
85 virtual QuicBandwidth PacingRate() const = 0; 82 virtual QuicBandwidth PacingRate() const = 0;
86 83
87 // What's the current estimated bandwidth in bytes per second. 84 // What's the current estimated bandwidth in bytes per second.
(...skipping 29 matching lines...) Expand all
117 114
118 // Called by the Session when we get a bandwidth estimate from the client. 115 // Called by the Session when we get a bandwidth estimate from the client.
119 // Returns true if initial connection state is changed as a result. 116 // Returns true if initial connection state is changed as a result.
120 virtual bool ResumeConnectionState( 117 virtual bool ResumeConnectionState(
121 const CachedNetworkParameters& cached_network_params) = 0; 118 const CachedNetworkParameters& cached_network_params) = 0;
122 }; 119 };
123 120
124 } // namespace net 121 } // namespace net
125 122
126 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 123 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.cc ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698