| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UNACKED_PACKET_MAP_H_ | 5 #ifndef NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ |
| 6 #define NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ | 6 #define NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/quic_protocol.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 QuicPacketNumber old_packet_number, | 35 QuicPacketNumber old_packet_number, |
| 36 TransmissionType transmission_type, | 36 TransmissionType transmission_type, |
| 37 QuicTime sent_time, | 37 QuicTime sent_time, |
| 38 QuicByteCount bytes_sent, | 38 QuicByteCount bytes_sent, |
| 39 bool set_in_flight); | 39 bool set_in_flight); |
| 40 | 40 |
| 41 // Returns true if the packet |packet_number| is unacked. | 41 // Returns true if the packet |packet_number| is unacked. |
| 42 bool IsUnacked(QuicPacketNumber packet_number) const; | 42 bool IsUnacked(QuicPacketNumber packet_number) const; |
| 43 | 43 |
| 44 // Sets the nack count to the max of the current nack count and |min_nacks|. | 44 // Sets the nack count to the max of the current nack count and |min_nacks|. |
| 45 void NackPacket(QuicPacketNumber packet_number, QuicPacketCount min_nacks); | 45 void NackPacket(QuicPacketNumber packet_number, uint16 min_nacks); |
| 46 | 46 |
| 47 // Marks |packet_number| as no longer in flight. | 47 // Marks |packet_number| as no longer in flight. |
| 48 void RemoveFromInFlight(QuicPacketNumber packet_number); | 48 void RemoveFromInFlight(QuicPacketNumber packet_number); |
| 49 | 49 |
| 50 // No longer retransmit data for |stream_id|. | 50 // No longer retransmit data for |stream_id|. |
| 51 void CancelRetransmissionsForStream(QuicStreamId stream_id); | 51 void CancelRetransmissionsForStream(QuicStreamId stream_id); |
| 52 | 52 |
| 53 // Returns true if the unacked packet |packet_number| has retransmittable | 53 // Returns true if the unacked packet |packet_number| has retransmittable |
| 54 // frames. This will return false if the packet has been acked, if a | 54 // frames. This will return false if the packet has been acked, if a |
| 55 // previous transmission of this packet was ACK'd, or if this packet has been | 55 // previous transmission of this packet was ACK'd, or if this packet has been |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Notifier manager for ACK packets. We notify it every time we abandon a | 178 // Notifier manager for ACK packets. We notify it every time we abandon a |
| 179 // packet. | 179 // packet. |
| 180 AckNotifierManager* ack_notifier_manager_; | 180 AckNotifierManager* ack_notifier_manager_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap); | 182 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace net | 185 } // namespace net |
| 186 | 186 |
| 187 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ | 187 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ |
| OLD | NEW |