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/core/congestion_control/send_algorithm_interface.h" | 5 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
6 | 6 |
7 #include "net/quic/core/congestion_control/bbr_sender.h" | 7 #include "net/quic/core/congestion_control/bbr_sender.h" |
8 #include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h" | 8 #include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h" |
9 #include "net/quic/core/congestion_control/tcp_cubic_sender_packets.h" | 9 #include "net/quic/core/congestion_control/tcp_cubic_sender_packets.h" |
10 #include "net/quic/core/quic_flags.h" | |
11 #include "net/quic/core/quic_packets.h" | 10 #include "net/quic/core/quic_packets.h" |
12 #include "net/quic/platform/api/quic_bug_tracker.h" | 11 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 12 #include "net/quic/platform/api/quic_flags.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 class RttStats; | 16 class RttStats; |
17 | 17 |
18 // Factory for send side congestion control algorithm. | 18 // Factory for send side congestion control algorithm. |
19 SendAlgorithmInterface* SendAlgorithmInterface::Create( | 19 SendAlgorithmInterface* SendAlgorithmInterface::Create( |
20 const QuicClock* clock, | 20 const QuicClock* clock, |
21 const RttStats* rtt_stats, | 21 const RttStats* rtt_stats, |
22 const QuicUnackedPacketMap* unacked_packets, | 22 const QuicUnackedPacketMap* unacked_packets, |
(...skipping 25 matching lines...) Expand all Loading... |
48 max_congestion_window, stats); | 48 max_congestion_window, stats); |
49 case kRenoBytes: | 49 case kRenoBytes: |
50 return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */, | 50 return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */, |
51 initial_congestion_window, | 51 initial_congestion_window, |
52 max_congestion_window, stats); | 52 max_congestion_window, stats); |
53 } | 53 } |
54 return nullptr; | 54 return nullptr; |
55 } | 55 } |
56 | 56 |
57 } // namespace net | 57 } // namespace net |
OLD | NEW |