blob: 8d1a39ce745f202632697e0fb0c95e899aac92f3 [file] [log] [blame]
// 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/receive_algorithm_interface.h"
#include "net/quic/congestion_control/tcp_receiver.h"
namespace net {
// Factory for receive side congestion control algorithm.
ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create(
CongestionFeedbackType type) {
switch (type) {
case kTCP:
return new TcpReceiver();
case kInterArrival:
LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported.";
return NULL;
}
return NULL;
}
} // namespace net