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

Unified Diff: net/quic/congestion_control/time_loss_algorithm.h

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/time_loss_algorithm.h
diff --git a/net/quic/congestion_control/time_loss_algorithm.h b/net/quic/congestion_control/time_loss_algorithm.h
deleted file mode 100644
index 6c1359eda2d04d02e5bbe77fb2708e0e57d57ce1..0000000000000000000000000000000000000000
--- a/net/quic/congestion_control/time_loss_algorithm.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
-#define NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
-
-#include <algorithm>
-#include <map>
-
-#include "base/macros.h"
-#include "net/quic/congestion_control/loss_detection_interface.h"
-#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_time.h"
-#include "net/quic/quic_unacked_packet_map.h"
-
-namespace net {
-
-// A loss detection algorithm which avoids spurious losses and retransmissions
-// by waiting 1.25 RTTs after a packet was sent instead of nack count.
-class NET_EXPORT_PRIVATE TimeLossAlgorithm : public LossDetectionInterface {
- public:
- TimeLossAlgorithm();
- ~TimeLossAlgorithm() override {}
-
- LossDetectionType GetLossDetectionType() const override;
-
- // Declares pending packets less than the largest observed lost when it has
- // been 1.25 RTT since they were sent. Packets larger than the largest
- // observed are retransmitted via TLP.
- PacketNumberSet DetectLostPackets(const QuicUnackedPacketMap& unacked_packets,
- const QuicTime& time,
- QuicPacketNumber largest_observed,
- const RttStats& rtt_stats) override;
-
- // Unsupported.
- void DetectLosses(
- const QuicUnackedPacketMap& unacked_packets,
- const QuicTime& time,
- const RttStats& rtt_stats,
- SendAlgorithmInterface::CongestionVector* packets_lost) override;
-
- // Returns the time the next packet will be lost, or zero if there
- // are no nacked pending packets outstanding.
- // TODO(ianswett): Ideally the RTT variance and the RTT would be used to
- // determine the time a packet is considered lost.
- // TODO(ianswett): Consider using Max(1.25 * srtt, 1.125 * last_rtt).
- QuicTime GetLossTimeout() const override;
-
- private:
- QuicTime loss_detection_timeout_;
-
- DISALLOW_COPY_AND_ASSIGN(TimeLossAlgorithm);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm_test.cc ('k') | net/quic/congestion_control/time_loss_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698