Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: net/quic/quic_unacked_packet_map.h

Issue 572703003: Minor change to QUIC's retransmission to not link old retransmissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_75263809
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698