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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // The pure virtual class for send side loss detection algorithm.
6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
9
10 #include "net/quic/congestion_control/send_algorithm_interface.h"
11 #include "net/quic/quic_protocol.h"
12 #include "net/quic/quic_time.h"
13
14 namespace net {
15
16 class QuicUnackedPacketMap;
17 class RttStats;
18
19 class NET_EXPORT_PRIVATE LossDetectionInterface {
20 public:
21 virtual ~LossDetectionInterface() {}
22
23 virtual LossDetectionType GetLossDetectionType() const = 0;
24
25 // Called when a new ack arrives or the loss alarm fires.
26 virtual void DetectLosses(
27 const QuicUnackedPacketMap& unacked_packets,
28 QuicTime time,
29 const RttStats& rtt_stats,
30 QuicPacketNumber largest_newly_acked,
31 SendAlgorithmInterface::CongestionVector* packets_lost) = 0;
32
33 // Get the time the LossDetectionAlgorithm wants to re-evaluate losses.
34 // Returns QuicTime::Zero if no alarm needs to be set.
35 virtual QuicTime GetLossTimeout() const = 0;
36
37 // Called when a |spurious_retransmission| is detected. The original
38 // transmission must have been caused by DetectLosses.
39 virtual void SpuriousRetransmitDetected(
40 const QuicUnackedPacketMap& unacked_packets,
41 QuicTime time,
42 const RttStats& rtt_stats,
43 QuicPacketNumber spurious_retransmission) = 0;
44 };
45
46 } // namespace net
47
48 #endif // NET_QUIC_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start_test.cc ('k') | net/quic/congestion_control/pacing_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698