| 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 <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void DiscardUnackedPacket(QuicPacketSequenceNumber sequence_number); | 89 void DiscardUnackedPacket(QuicPacketSequenceNumber sequence_number); |
| 90 | 90 |
| 91 // Returns true if the non-FEC packet |sequence_number| is unacked. | 91 // Returns true if the non-FEC packet |sequence_number| is unacked. |
| 92 bool IsUnacked(QuicPacketSequenceNumber sequence_number) const; | 92 bool IsUnacked(QuicPacketSequenceNumber sequence_number) const; |
| 93 | 93 |
| 94 // Requests retransmission of all unacked packets of |retransmission_type|. | 94 // Requests retransmission of all unacked packets of |retransmission_type|. |
| 95 void RetransmitUnackedPackets(RetransmissionType retransmission_type); | 95 void RetransmitUnackedPackets(RetransmissionType retransmission_type); |
| 96 | 96 |
| 97 // Removes the retransmittable frames from all unencrypted packets to ensure | 97 // Removes the retransmittable frames from all unencrypted packets to ensure |
| 98 // they don't get retransmitted. | 98 // they don't get retransmitted. |
| 99 void DiscardUnencryptedPackets(); | 99 void NeuterUnencryptedPackets(); |
| 100 | 100 |
| 101 // Returns true if the unacked packet |sequence_number| has retransmittable | 101 // Returns true if the unacked packet |sequence_number| has retransmittable |
| 102 // frames. This will only return false if the packet has been acked, if a | 102 // frames. This will only return false if the packet has been acked, if a |
| 103 // previous transmission of this packet was ACK'd, or if this packet has been | 103 // previous transmission of this packet was ACK'd, or if this packet has been |
| 104 // retransmitted as with different sequence number. | 104 // retransmitted as with different sequence number. |
| 105 bool HasRetransmittableFrames(QuicPacketSequenceNumber sequence_number) const; | 105 bool HasRetransmittableFrames(QuicPacketSequenceNumber sequence_number) const; |
| 106 | 106 |
| 107 // Returns true if there are pending retransmissions. | 107 // Returns true if there are pending retransmissions. |
| 108 bool HasPendingRetransmissions() const; | 108 bool HasPendingRetransmissions() const; |
| 109 | 109 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Sets of packets acked and lost as a result of the last congestion event. | 287 // Sets of packets acked and lost as a result of the last congestion event. |
| 288 SendAlgorithmInterface::CongestionMap packets_acked_; | 288 SendAlgorithmInterface::CongestionMap packets_acked_; |
| 289 SendAlgorithmInterface::CongestionMap packets_lost_; | 289 SendAlgorithmInterface::CongestionMap packets_lost_; |
| 290 | 290 |
| 291 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 291 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 } // namespace net | 294 } // namespace net |
| 295 | 295 |
| 296 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 296 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |