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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/platform/api/quic_pcc_sender.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/impl/quic_pcc_sender_impl.h
diff --git a/net/quic/platform/impl/quic_pcc_sender_impl.h b/net/quic/platform/impl/quic_pcc_sender_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..6fae8d6184727618eff8dd12f77cb72640719306
--- /dev/null
+++ b/net/quic/platform/impl/quic_pcc_sender_impl.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_
+#define NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_
+
+#include "net/quic/core/congestion_control/send_algorithm_interface.h"
+#include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h"
+
+namespace net {
+
+// Interface for creating a PCC SendAlgorithmInterface. For chromium,
+// this implementation is currently a stub that passes through to
+// cubic bytes.
+SendAlgorithmInterface* CreatePccSenderImpl(
+ const QuicClock* clock,
+ const RttStats* rtt_stats,
+ const QuicUnackedPacketMap* unacked_packets,
+ QuicRandom* random,
+ QuicConnectionStats* stats,
+ QuicPacketCount initial_congestion_window,
+ QuicPacketCount max_congestion_window) {
+ return new TcpCubicSenderBytes(clock, rtt_stats, false /* don't use Reno */,
+ initial_congestion_window,
+ max_congestion_window, stats);
+}
+
+} // namespace net
+
+#endif // NET_QUIC_PLATFORM_IMPL_QUIC_PCC_SENDER_IMPL_H_
« 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