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

Unified Diff: net/quic/quic_sent_packet_manager.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
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 9bc0f87f2ac906c371828d8f5c1d1940562ad8fe..30f34e38fa143ce14b72d3786556c24974969ada 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -63,19 +63,22 @@ bool HasCryptoHandshake(const TransmissionInfo& transmission_info) {
#define ENDPOINT (is_server_ ? "Server: " : " Client: ")
-QuicSentPacketManager::QuicSentPacketManager(bool is_server,
- const QuicClock* clock,
- QuicConnectionStats* stats,
- CongestionFeedbackType type,
- LossDetectionType loss_type)
+QuicSentPacketManager::QuicSentPacketManager(
+ bool is_server,
+ const QuicClock* clock,
+ QuicConnectionStats* stats,
+ CongestionControlType congestion_control_type,
+ LossDetectionType loss_type)
: unacked_packets_(),
is_server_(is_server),
clock_(clock),
stats_(stats),
debug_delegate_(NULL),
network_change_visitor_(NULL),
- send_algorithm_(
- SendAlgorithmInterface::Create(clock, &rtt_stats_, type, stats)),
+ send_algorithm_(SendAlgorithmInterface::Create(clock,
+ &rtt_stats_,
+ congestion_control_type,
+ stats)),
loss_algorithm_(LossDetectionInterface::Create(loss_type)),
largest_observed_(0),
first_rto_transmission_(0),
@@ -104,7 +107,7 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
QuicTime::Delta::FromSeconds(FLAGS_quic_recent_min_rtt_window_s));
}
send_algorithm_.reset(
- SendAlgorithmInterface::Create(clock_, &rtt_stats_, kTCPBBR, stats_));
+ SendAlgorithmInterface::Create(clock_, &rtt_stats_, kBBR, stats_));
}
if (config.congestion_feedback() == kPACE ||
(config.HasReceivedConnectionOptions() &&
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698