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

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

Issue 1401053005: relnote: Reduce the size of QUIC's TransmissionInfo struct based on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_test_cases_to_catch_failure_104130818
Patch Set: Created 5 years, 2 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_protocol.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 24 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698