Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: net/quic/platform/impl/quic_pcc_sender_impl.h

Issue 2856163003: Simple API for platform-specific PCC implementations. Implementation (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_pcc_sender.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_pcc_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698