Add explicit |forceOnlineSignin| to user pod status
[chromium-blink-merge.git] / net / quic / congestion_control / receive_algorithm_interface.cc
blobfab4cfb0db515ea18108d806a02dfd4a4b5f8aad
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/quic/congestion_control/receive_algorithm_interface.h"
7 #include "net/quic/congestion_control/fix_rate_receiver.h"
8 #include "net/quic/congestion_control/inter_arrival_receiver.h"
9 #include "net/quic/congestion_control/tcp_receiver.h"
11 namespace net {
13 // Factory for receive side congestion control algorithm.
14 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create(
15 CongestionFeedbackType type) {
16 switch (type) {
17 case kTCP:
18 return new TcpReceiver();
19 case kInterArrival:
20 return new InterArrivalReceiver();
21 case kFixRate:
22 return new FixRateReceiver();
24 return NULL;
27 } // namespace net