OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 QuicPacketSequenceNumber new_sequence_number); | 126 QuicPacketSequenceNumber new_sequence_number); |
127 | 127 |
128 // Processes the incoming ack. | 128 // Processes the incoming ack. |
129 void OnIncomingAck(const QuicAckFrame& ack_frame, | 129 void OnIncomingAck(const QuicAckFrame& ack_frame, |
130 QuicTime ack_receive_time); | 130 QuicTime ack_receive_time); |
131 | 131 |
132 // Returns true if the non-FEC packet |sequence_number| is unacked. | 132 // Returns true if the non-FEC packet |sequence_number| is unacked. |
133 bool IsUnacked(QuicPacketSequenceNumber sequence_number) const; | 133 bool IsUnacked(QuicPacketSequenceNumber sequence_number) const; |
134 | 134 |
135 // Requests retransmission of all unacked packets of |retransmission_type|. | 135 // Requests retransmission of all unacked packets of |retransmission_type|. |
136 void RetransmitUnackedPackets(RetransmissionType retransmission_type); | 136 void RetransmitUnackedPackets(TransmissionType retransmission_type); |
137 | 137 |
138 // Retransmits the oldest pending packet there is still a tail loss probe | 138 // Retransmits the oldest pending packet there is still a tail loss probe |
139 // pending. Invoked after OnRetransmissionTimeout. | 139 // pending. Invoked after OnRetransmissionTimeout. |
140 bool MaybeRetransmitTailLossProbe(); | 140 bool MaybeRetransmitTailLossProbe(); |
141 | 141 |
142 // Removes the retransmittable frames from all unencrypted packets to ensure | 142 // Removes the retransmittable frames from all unencrypted packets to ensure |
143 // they don't get retransmitted. | 143 // they don't get retransmitted. |
144 void NeuterUnencryptedPackets(); | 144 void NeuterUnencryptedPackets(); |
145 | 145 |
146 // Returns true if the unacked packet |sequence_number| has retransmittable | 146 // Returns true if the unacked packet |sequence_number| has retransmittable |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 // Records bandwidth from server to client in normal operation, over periods | 390 // Records bandwidth from server to client in normal operation, over periods |
391 // of time with no loss events. | 391 // of time with no loss events. |
392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 392 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
393 | 393 |
394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 394 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
395 }; | 395 }; |
396 | 396 |
397 } // namespace net | 397 } // namespace net |
398 | 398 |
399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 399 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |