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

Side by Side Diff: net/quic/congestion_control/tcp_loss_algorithm.h

Issue 181723003: Start using the loss timeout in QuicSentPacketManager and add a mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ 5 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_
6 #define NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ 6 #define NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 TCPLossAlgorithm(); 23 TCPLossAlgorithm();
24 virtual ~TCPLossAlgorithm() {} 24 virtual ~TCPLossAlgorithm() {}
25 25
26 // Uses nack counts to decide when packets are lost. 26 // Uses nack counts to decide when packets are lost.
27 virtual SequenceNumberSet DetectLostPackets( 27 virtual SequenceNumberSet DetectLostPackets(
28 const QuicUnackedPacketMap& unacked_packets, 28 const QuicUnackedPacketMap& unacked_packets,
29 const QuicTime& time, 29 const QuicTime& time,
30 QuicPacketSequenceNumber largest_observed, 30 QuicPacketSequenceNumber largest_observed,
31 QuicTime::Delta srtt) OVERRIDE; 31 QuicTime::Delta srtt) OVERRIDE;
32
33 // Return QuicTime::Zero.
34 virtual QuicTime GetLossTimeout() const OVERRIDE;
32 }; 35 };
33 36
34 } // namespace net 37 } // namespace net
35 38
36 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ 39 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/loss_detection_interface.h ('k') | net/quic/congestion_control/tcp_loss_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698