| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool HasMultipleInFlightPackets() const; | 118 bool HasMultipleInFlightPackets() const; |
| 119 | 119 |
| 120 // Returns true if there are any pending crypto packets. | 120 // Returns true if there are any pending crypto packets. |
| 121 bool HasPendingCryptoPackets() const; | 121 bool HasPendingCryptoPackets() const; |
| 122 | 122 |
| 123 // Removes any retransmittable frames from this transmission or an associated | 123 // Removes any retransmittable frames from this transmission or an associated |
| 124 // transmission. It removes now useless transmissions, and disconnects any | 124 // transmission. It removes now useless transmissions, and disconnects any |
| 125 // other packets from other transmissions. | 125 // other packets from other transmissions. |
| 126 void RemoveRetransmittability(QuicPacketSequenceNumber sequence_number); | 126 void RemoveRetransmittability(QuicPacketSequenceNumber sequence_number); |
| 127 | 127 |
| 128 // Removes any other retransmissions and marks all transmissions unackable. |
| 129 void RemoveAckability(TransmissionInfo* info); |
| 130 |
| 128 // Increases the largest observed. Any packets less or equal to | 131 // Increases the largest observed. Any packets less or equal to |
| 129 // |largest_acked_packet| are discarded if they are only for the RTT purposes. | 132 // |largest_acked_packet| are discarded if they are only for the RTT purposes. |
| 130 void IncreaseLargestObserved(QuicPacketSequenceNumber largest_observed); | 133 void IncreaseLargestObserved(QuicPacketSequenceNumber largest_observed); |
| 131 | 134 |
| 132 // Remove any packets no longer needed for retransmission, congestion, or | 135 // Remove any packets no longer needed for retransmission, congestion, or |
| 133 // RTT measurement purposes. | 136 // RTT measurement purposes. |
| 134 void RemoveObsoletePackets(); | 137 void RemoveObsoletePackets(); |
| 135 | 138 |
| 136 private: | 139 private: |
| 137 void MaybeRemoveRetransmittableFrames(TransmissionInfo* transmission_info); | 140 void MaybeRemoveRetransmittableFrames(TransmissionInfo* transmission_info); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 162 size_t bytes_in_flight_; | 165 size_t bytes_in_flight_; |
| 163 // Number of retransmittable crypto handshake packets. | 166 // Number of retransmittable crypto handshake packets. |
| 164 size_t pending_crypto_packet_count_; | 167 size_t pending_crypto_packet_count_; |
| 165 | 168 |
| 166 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap); | 169 DISALLOW_COPY_AND_ASSIGN(QuicUnackedPacketMap); |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace net | 172 } // namespace net |
| 170 | 173 |
| 171 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ | 174 #endif // NET_QUIC_QUIC_UNACKED_PACKET_MAP_H_ |
| OLD | NEW |