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

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

Issue 270213002: Fix a bug where if a crypto packet is spuriously retransmitted and then (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sending for review Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_sent_packet_manager.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 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
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 NeuterUnencryptedPackets(); 99 void DiscardUnencryptedPackets();
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698