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

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

Issue 110383006: QuicSentPacketManager cleanup to simplify OnAbandonFECTimeout() and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « no previous file | 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Calculate the time until we can send the next packet to the wire. 184 // Calculate the time until we can send the next packet to the wire.
185 // Note 1: When kUnknownWaitTime is returned, there is no need to poll 185 // Note 1: When kUnknownWaitTime is returned, there is no need to poll
186 // TimeUntilSend again until we receive an OnIncomingAckFrame event. 186 // TimeUntilSend again until we receive an OnIncomingAckFrame event.
187 // Note 2: Send algorithms may or may not use |retransmit| in their 187 // Note 2: Send algorithms may or may not use |retransmit| in their
188 // calculations. 188 // calculations.
189 virtual QuicTime::Delta TimeUntilSend(QuicTime now, 189 virtual QuicTime::Delta TimeUntilSend(QuicTime now,
190 TransmissionType transmission_type, 190 TransmissionType transmission_type,
191 HasRetransmittableData retransmittable, 191 HasRetransmittableData retransmittable,
192 IsHandshake handshake); 192 IsHandshake handshake);
193 193
194 const QuicTime::Delta DefaultRetransmissionTime();
195
196 // Returns amount of time for delayed ack timer. 194 // Returns amount of time for delayed ack timer.
197 const QuicTime::Delta DelayedAckTime(); 195 const QuicTime::Delta DelayedAckTime();
198 196
199 // Returns the current RTO delay. 197 // Returns the current RTO delay.
200 const QuicTime::Delta GetRetransmissionDelay() const; 198 const QuicTime::Delta GetRetransmissionDelay() const;
201 199
202 // Returns the estimated smoothed RTT calculated by the congestion algorithm. 200 // Returns the estimated smoothed RTT calculated by the congestion algorithm.
203 const QuicTime::Delta SmoothedRtt() const; 201 const QuicTime::Delta SmoothedRtt() const;
204 202
205 // Returns the estimated bandwidth calculated by the congestion algorithm. 203 // Returns the estimated bandwidth calculated by the congestion algorithm.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // Number of times the RTO timer has fired in a row without receiving an ack. 326 // Number of times the RTO timer has fired in a row without receiving an ack.
329 size_t consecutive_rto_count_; 327 size_t consecutive_rto_count_;
330 bool using_pacing_; 328 bool using_pacing_;
331 329
332 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 330 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
333 }; 331 };
334 332
335 } // namespace net 333 } // namespace net
336 334
337 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 335 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698