OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_ |
| 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_ |
| 7 |
| 8 #include "net/quic/core/congestion_control/send_algorithm_interface.h" |
| 9 #include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // Interface for creating a PCC SendAlgorithmInterface. For chromium, |
| 14 // this implementation is currently a stub that passes through to |
| 15 // cubic bytes. |
| 16 SendAlgorithmInterface* CreatePccSenderImpl( |
| 17 const QuicClock* clock, |
| 18 const RttStats* rtt_stats, |
| 19 const QuicUnackedPacketMap* unacked_packets, |
| 20 QuicRandom* random, |
| 21 QuicConnectionStats* stats, |
| 22 QuicPacketCount initial_congestion_window, |
| 23 QuicPacketCount max_congestion_window) { |
| 24 return new TcpCubicSenderBytes(clock, rtt_stats, false /* don't use Reno */, |
| 25 initial_congestion_window, |
| 26 max_congestion_window, stats); |
| 27 } |
| 28 |
| 29 } // namespace net |
| 30 |
| 31 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_ |
OLD | NEW |