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

Unified Diff: net/quic/congestion_control/send_algorithm_interface.cc

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/send_algorithm_interface.cc
diff --git a/net/quic/congestion_control/send_algorithm_interface.cc b/net/quic/congestion_control/send_algorithm_interface.cc
deleted file mode 100644
index 205e15c6d7eae7b6354d58bbcdb36dfede150b2c..0000000000000000000000000000000000000000
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ /dev/null
@@ -1,53 +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.
-
-#include "net/quic/congestion_control/send_algorithm_interface.h"
-
-#include "net/quic/congestion_control/tcp_cubic_sender_bytes.h"
-#include "net/quic/congestion_control/tcp_cubic_sender_packets.h"
-#include "net/quic/quic_flags.h"
-#include "net/quic/quic_protocol.h"
-
-namespace net {
-
-class RttStats;
-
-// Factory for send side congestion control algorithm.
-SendAlgorithmInterface* SendAlgorithmInterface::Create(
- const QuicClock* clock,
- const RttStats* rtt_stats,
- CongestionControlType congestion_control_type,
- QuicConnectionStats* stats,
- QuicPacketCount initial_congestion_window) {
- QuicPacketCount max_congestion_window = kDefaultMaxCongestionWindowPackets;
- switch (congestion_control_type) {
- case kCubic:
- return new TcpCubicSenderPackets(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- case kCubicBytes:
- return new TcpCubicSenderBytes(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- case kReno:
- return new TcpCubicSenderPackets(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- case kRenoBytes:
- return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- case kBBR:
-// TODO(rtenneti): Enable BbrTcpSender.
-#if 0
- return new BbrTcpSender(clock, rtt_stats, initial_congestion_window,
- max_congestion_window, stats, true);
-#endif
- LOG(DFATAL) << "BbrTcpSender is not supported.";
- return nullptr;
- }
- return nullptr;
-}
-
-} // namespace net
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/send_algorithm_simulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698