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

Unified Diff: net/quic/congestion_control/tcp_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
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | net/quic/congestion_control/tcp_loss_algorithm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_loss_algorithm.h
diff --git a/net/quic/congestion_control/tcp_loss_algorithm.h b/net/quic/congestion_control/tcp_loss_algorithm.h
deleted file mode 100644
index 35f04ce7945e42dd521596c16dd06a4417428312..0000000000000000000000000000000000000000
--- a/net/quic/congestion_control/tcp_loss_algorithm.h
+++ /dev/null
@@ -1,54 +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_TCP_LOSS_ALGORITHM_H_
-#define NET_QUIC_CONGESTION_CONTROL_TCP_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 {
-
-// Class which implement's TCP's approach of detecting loss when 3 nacks have
-// been received for a packet. Also implements TCP's early retransmit(RFC5827).
-class NET_EXPORT_PRIVATE TCPLossAlgorithm : public LossDetectionInterface {
- public:
- // TCP retransmits after 3 nacks.
- static const QuicPacketCount kNumberOfNacksBeforeRetransmission = 3;
-
- TCPLossAlgorithm();
- ~TCPLossAlgorithm() override {}
-
- LossDetectionType GetLossDetectionType() const override;
-
- // Uses nack counts to decide when packets are lost.
- 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 a non-zero value when the early retransmit timer is active.
- QuicTime GetLossTimeout() const override;
-
- private:
- QuicTime loss_detection_timeout_;
-
- DISALLOW_COPY_AND_ASSIGN(TCPLossAlgorithm);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | net/quic/congestion_control/tcp_loss_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698