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

Side by Side Diff: net/quic/congestion_control/loss_detection_interface.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
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_loss_algorithm.h » ('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 (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 // The pure virtual class for send side loss detection algorithm. 5 // The pure virtual class for send side loss detection algorithm.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 static LossDetectionInterface* Create(); 21 static LossDetectionInterface* Create();
22 22
23 virtual ~LossDetectionInterface() {} 23 virtual ~LossDetectionInterface() {}
24 24
25 // Called when a new ack arrives or the loss alarm fires. 25 // Called when a new ack arrives or the loss alarm fires.
26 virtual SequenceNumberSet DetectLostPackets( 26 virtual SequenceNumberSet DetectLostPackets(
27 const QuicUnackedPacketMap& unacked_packets, 27 const QuicUnackedPacketMap& unacked_packets,
28 const QuicTime& time, 28 const QuicTime& time,
29 QuicPacketSequenceNumber largest_observed, 29 QuicPacketSequenceNumber largest_observed,
30 QuicTime::Delta srtt) = 0; 30 QuicTime::Delta srtt) = 0;
31
32 // Get the time the LossDetectionAlgorithm wants to re-evaluate losses.
33 // Returns QuicTime::Zero if no alarm needs to be set.
34 virtual QuicTime GetLossTimeout() const = 0;
31 }; 35 };
32 36
33 } // namespace net 37 } // namespace net
34 38
35 #endif // NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_ 39 #endif // NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_loss_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698