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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender_packets.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, 5 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/tcp_cubic_sender_packets.h
diff --git a/net/quic/congestion_control/tcp_cubic_sender_packets.h b/net/quic/congestion_control/tcp_cubic_sender_packets.h
deleted file mode 100644
index 2fe630f750e77271ca416fda7e3036d6f4907b8d..0000000000000000000000000000000000000000
--- a/net/quic/congestion_control/tcp_cubic_sender_packets.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) 2012 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.
-//
-// TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
-
-#ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_
-#define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_
-
-#include <stdint.h>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "net/base/net_export.h"
-#include "net/quic/congestion_control/cubic.h"
-#include "net/quic/congestion_control/hybrid_slow_start.h"
-#include "net/quic/congestion_control/prr_sender.h"
-#include "net/quic/congestion_control/tcp_cubic_sender_base.h"
-#include "net/quic/quic_bandwidth.h"
-#include "net/quic/quic_connection_stats.h"
-#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_time.h"
-
-namespace net {
-
-class RttStats;
-
-namespace test {
-class TcpCubicSenderPacketsPeer;
-} // namespace test
-
-class NET_EXPORT_PRIVATE TcpCubicSenderPackets : public TcpCubicSenderBase {
- public:
- // Reno option and max_tcp_congestion_window are provided for testing.
- TcpCubicSenderPackets(const QuicClock* clock,
- const RttStats* rtt_stats,
- bool reno,
- QuicPacketCount initial_tcp_congestion_window,
- QuicPacketCount max_tcp_congestion_window,
- QuicConnectionStats* stats);
- ~TcpCubicSenderPackets() override;
-
- // Start implementation of SendAlgorithmInterface.
- void SetNumEmulatedConnections(int num_connections) override;
- void OnConnectionMigration() override;
- QuicByteCount GetCongestionWindow() const override;
- QuicByteCount GetSlowStartThreshold() const override;
- CongestionControlType GetCongestionControlType() const override;
- // End implementation of SendAlgorithmInterface.
-
- QuicByteCount min_congestion_window() const { return min_congestion_window_; }
-
- protected:
- // TcpCubicSenderBase methods
- void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth,
- QuicTime::Delta rtt) override;
- void SetCongestionWindowInPackets(QuicPacketCount congestion_window) override;
- void SetMinCongestionWindowInPackets(
- QuicPacketCount congestion_window) override;
- void ExitSlowstart() override;
- void OnPacketLost(QuicPacketNumber largest_loss,
- QuicByteCount lost_bytes,
- QuicByteCount bytes_in_flight) override;
- void MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number,
- QuicByteCount acked_bytes,
- QuicByteCount bytes_in_flight) override;
- void HandleRetransmissionTimeout() override;
-
- private:
- friend class test::TcpCubicSenderPacketsPeer;
-
- Cubic cubic_;
-
- // ACK counter for the Reno implementation.
- uint64_t congestion_window_count_;
-
- // Congestion window in packets.
- QuicPacketCount congestion_window_;
-
- // Minimum congestion window in packets.
- QuicPacketCount min_congestion_window_;
-
- // Slow start congestion window in packets, aka ssthresh.
- QuicPacketCount slowstart_threshold_;
-
- // Maximum number of outstanding packets for tcp.
- QuicPacketCount max_tcp_congestion_window_;
-
- // Initial TCP congestion window. This variable can only be set when this
- // algorithm is created.
- const QuicPacketCount initial_tcp_congestion_window_;
-
- // Initial maximum TCP congestion window. This variable can only be set when
- // this algorithm is created.
- const QuicPacketCount initial_max_tcp_congestion_window_;
-
- // The minimum window when exiting slow start with large reduction.
- QuicPacketCount min_slow_start_exit_window_;
-
- DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderPackets);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_bytes_test.cc ('k') | net/quic/congestion_control/tcp_cubic_sender_packets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698