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

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

Issue 400813002: Cleanup and adding GetCongestionControlType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
index 58b92bce081b043b7354d49c9f246d895bd5b630..240166791d2eb4d8a7893ec7ce1714c314ab5dff 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -18,18 +18,18 @@ class RttStats;
SendAlgorithmInterface* SendAlgorithmInterface::Create(
const QuicClock* clock,
const RttStats* rtt_stats,
- CongestionFeedbackType type,
+ CongestionControlType congestion_control_type,
QuicConnectionStats* stats) {
- switch (type) {
+ switch (congestion_control_type) {
case kTCP:
return new TcpCubicSender(clock, rtt_stats, kUseReno,
kMaxTcpCongestionWindow, stats);
case kInterArrival:
LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported.";
return NULL;
- case kFixRate:
+ case kFixRateCongestionControl:
return new FixRateSender(rtt_stats);
- case kTCPBBR:
+ case kBBR:
LOG(DFATAL) << "BbrTcpSender is not supported.";
return NULL;
}
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698