OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/congestion_control/receive_algorithm_interface.h" | 5 #include "net/quic/congestion_control/receive_algorithm_interface.h" |
6 | 6 |
7 #include "net/quic/congestion_control/fix_rate_receiver.h" | 7 #include "net/quic/congestion_control/fix_rate_receiver.h" |
8 #include "net/quic/congestion_control/tcp_receiver.h" | 8 #include "net/quic/congestion_control/tcp_receiver.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 // Factory for receive side congestion control algorithm. | 12 // Factory for receive side congestion control algorithm. |
13 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create( | 13 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create( |
14 CongestionFeedbackType type) { | 14 CongestionFeedbackType type) { |
15 switch (type) { | 15 switch (type) { |
16 case kTCP: | 16 case kTCP: |
17 return new TcpReceiver(); | 17 return new TcpReceiver(); |
| 18 case kTCPBBR: |
| 19 LOG(DFATAL) << "TCPBBR is not yet supported."; |
| 20 return NULL; |
18 case kInterArrival: | 21 case kInterArrival: |
19 LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported."; | 22 LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported."; |
20 return NULL; | 23 return NULL; |
21 case kFixRate: | 24 case kFixRate: |
22 return new FixRateReceiver(); | 25 return new FixRateReceiver(); |
23 } | 26 } |
24 return NULL; | 27 return NULL; |
25 } | 28 } |
26 | 29 |
27 } // namespace net | 30 } // namespace net |
OLD | NEW |