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

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

Issue 1777293002: Add a new QUIC Ack Decimation mode that is reordering tolerant. Protected by FLAG_quic_ack_decimati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115844136
Patch Set: Created 4 years, 9 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.h ('k') | net/quic/quic_received_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 // Manages the packet entropy calculation for both sent and received packets 5 // Manages the packet entropy calculation for both sent and received packets
6 // for a connection. 6 // for a connection.
7 7
8 #ifndef NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ 8 #ifndef NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_
9 #define NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ 9 #define NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // QuicReceivedEntropyHashCalculatorInterface 124 // QuicReceivedEntropyHashCalculatorInterface
125 // Called by QuicFramer, when the outgoing ack gets truncated, to recalculate 125 // Called by QuicFramer, when the outgoing ack gets truncated, to recalculate
126 // the received entropy hash for the truncated ack frame. 126 // the received entropy hash for the truncated ack frame.
127 QuicPacketEntropyHash EntropyHash( 127 QuicPacketEntropyHash EntropyHash(
128 QuicPacketNumber packet_number) const override; 128 QuicPacketNumber packet_number) const override;
129 129
130 // Updates internal state based on |stop_waiting|. 130 // Updates internal state based on |stop_waiting|.
131 virtual void UpdatePacketInformationSentByPeer( 131 virtual void UpdatePacketInformationSentByPeer(
132 const QuicStopWaitingFrame& stop_waiting); 132 const QuicStopWaitingFrame& stop_waiting);
133 133
134 // Returns true if there are any missing packets.
135 bool HasMissingPackets() const;
136
134 // Returns true when there are new missing packets to be reported within 3 137 // Returns true when there are new missing packets to be reported within 3
135 // packets of the largest observed. 138 // packets of the largest observed.
136 virtual bool HasNewMissingPackets() const; 139 virtual bool HasNewMissingPackets() const;
137 140
138 // Returns the number of packets being tracked in the EntropyTracker. 141 // Returns the number of packets being tracked in the EntropyTracker.
139 size_t NumTrackedPackets() const; 142 size_t NumTrackedPackets() const;
140 143
141 QuicPacketNumber peer_least_packet_awaiting_ack() { 144 QuicPacketNumber peer_least_packet_awaiting_ack() {
142 return peer_least_packet_awaiting_ack_; 145 return peer_least_packet_awaiting_ack_;
143 } 146 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 QuicTime time_largest_observed_; 180 QuicTime time_largest_observed_;
178 181
179 QuicConnectionStats* stats_; 182 QuicConnectionStats* stats_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager); 184 DISALLOW_COPY_AND_ASSIGN(QuicReceivedPacketManager);
182 }; 185 };
183 186
184 } // namespace net 187 } // namespace net
185 188
186 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_ 189 #endif // NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.h ('k') | net/quic/quic_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698