This source file includes following definitions.
- Create
#include "net/quic/congestion_control/send_algorithm_interface.h"
#include "net/quic/congestion_control/fix_rate_sender.h"
#include "net/quic/congestion_control/inter_arrival_sender.h"
#include "net/quic/congestion_control/tcp_cubic_sender.h"
#include "net/quic/quic_protocol.h"
namespace net {
const bool kUseReno = false;
class RttStats;
SendAlgorithmInterface* SendAlgorithmInterface::Create(
const QuicClock* clock,
const RttStats* rtt_stats,
CongestionFeedbackType type,
QuicConnectionStats* stats) {
switch (type) {
case kTCP:
return new TcpCubicSender(clock, rtt_stats, kUseReno,
kMaxTcpCongestionWindow, stats);
case kInterArrival:
return new InterArrivalSender(clock, rtt_stats);
case kFixRate:
return new FixRateSender(clock);
}
return NULL;
}
}