OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
10 #include "net/quic/quic_sustained_bandwidth_recorder.h" | 10 #include "net/quic/quic_sustained_bandwidth_recorder.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Sets max pacing rate of the default path. | 74 // Sets max pacing rate of the default path. |
75 virtual void SetMaxPacingRate(QuicBandwidth max_pacing_rate) = 0; | 75 virtual void SetMaxPacingRate(QuicBandwidth max_pacing_rate) = 0; |
76 | 76 |
77 // Indicates the handshake has completed, so no handshake packets need to be | 77 // Indicates the handshake has completed, so no handshake packets need to be |
78 // retransmitted. | 78 // retransmitted. |
79 virtual void SetHandshakeConfirmed() = 0; | 79 virtual void SetHandshakeConfirmed() = 0; |
80 | 80 |
81 virtual void OnIncomingAck(const QuicAckFrame& ack_frame, | 81 virtual void OnIncomingAck(const QuicAckFrame& ack_frame, |
82 QuicTime ack_receive_time) = 0; | 82 QuicTime ack_receive_time) = 0; |
83 | 83 |
84 virtual bool IsUnacked(QuicPathId path_id, | |
85 QuicPacketNumber packet_number) const = 0; | |
86 | |
87 virtual bool HasRetransmittableFrames( | |
88 QuicPathId path_id, | |
89 QuicPacketNumber packet_number) const = 0; | |
90 | |
91 // Requests retransmission of all unacked packets of |retransmission_type| on | 84 // Requests retransmission of all unacked packets of |retransmission_type| on |
92 // the default path. | 85 // the default path. |
93 virtual void RetransmitUnackedPackets( | 86 virtual void RetransmitUnackedPackets( |
94 TransmissionType retransmission_type) = 0; | 87 TransmissionType retransmission_type) = 0; |
95 | 88 |
96 // Retransmits the oldest pending packet on the path (on which retransmission | 89 // Retransmits the oldest pending packet on the path (on which retransmission |
97 // alarm fires) if there is still a tail loss probe pending. Invoked after | 90 // alarm fires) if there is still a tail loss probe pending. Invoked after |
98 // OnRetransmissionTimeout. | 91 // OnRetransmissionTimeout. |
99 virtual bool MaybeRetransmitTailLossProbe() = 0; | 92 virtual bool MaybeRetransmitTailLossProbe() = 0; |
100 | 93 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 181 |
189 // These two methods return the consecutive RTO or TLP count of the default | 182 // These two methods return the consecutive RTO or TLP count of the default |
190 // path. | 183 // path. |
191 virtual size_t GetConsecutiveRtoCount() const = 0; | 184 virtual size_t GetConsecutiveRtoCount() const = 0; |
192 virtual size_t GetConsecutiveTlpCount() const = 0; | 185 virtual size_t GetConsecutiveTlpCount() const = 0; |
193 }; | 186 }; |
194 | 187 |
195 } // namespace net | 188 } // namespace net |
196 | 189 |
197 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 190 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
OLD | NEW |