This source file includes following definitions.
- Create
#include "net/quic/congestion_control/receive_algorithm_interface.h"
#include "net/quic/congestion_control/fix_rate_receiver.h"
#include "net/quic/congestion_control/inter_arrival_receiver.h"
#include "net/quic/congestion_control/tcp_receiver.h"
namespace net {
ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create(
CongestionFeedbackType type) {
switch (type) {
case kTCP:
return new TcpReceiver();
case kInterArrival:
return new InterArrivalReceiver();
case kFixRate:
return new FixRateReceiver();
}
return NULL;
}
}