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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender.h

Issue 1037633002: Add a QUIC connection option(BWMX) to resume to the max bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Populate_RTT_info_89043159
Patch Set: Created 5 years, 9 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
OLDNEW
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 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 QuicPacketCount initial_tcp_congestion_window, 37 QuicPacketCount initial_tcp_congestion_window,
38 QuicPacketCount max_tcp_congestion_window, 38 QuicPacketCount max_tcp_congestion_window,
39 QuicConnectionStats* stats); 39 QuicConnectionStats* stats);
40 ~TcpCubicSender() override; 40 ~TcpCubicSender() override;
41 41
42 // Start implementation of SendAlgorithmInterface. 42 // Start implementation of SendAlgorithmInterface.
43 void SetFromConfig(const QuicConfig& config, 43 void SetFromConfig(const QuicConfig& config,
44 Perspective perspective, 44 Perspective perspective,
45 bool using_pacing) override; 45 bool using_pacing) override;
46 bool ResumeConnectionState( 46 bool ResumeConnectionState(
47 const CachedNetworkParameters& cached_network_params) override; 47 const CachedNetworkParameters& cached_network_params,
48 bool max_bandwidth_resumption) override;
48 void SetNumEmulatedConnections(int num_connections) override; 49 void SetNumEmulatedConnections(int num_connections) override;
49 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override; 50 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override;
50 void OnCongestionEvent(bool rtt_updated, 51 void OnCongestionEvent(bool rtt_updated,
51 QuicByteCount bytes_in_flight, 52 QuicByteCount bytes_in_flight,
52 const CongestionVector& acked_packets, 53 const CongestionVector& acked_packets,
53 const CongestionVector& lost_packets) override; 54 const CongestionVector& lost_packets) override;
54 bool OnPacketSent(QuicTime sent_time, 55 bool OnPacketSent(QuicTime sent_time,
55 QuicByteCount bytes_in_flight, 56 QuicByteCount bytes_in_flight,
56 QuicPacketSequenceNumber sequence_number, 57 QuicPacketSequenceNumber sequence_number,
57 QuicByteCount bytes, 58 QuicByteCount bytes,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 QuicPacketCount max_tcp_congestion_window_; 131 QuicPacketCount max_tcp_congestion_window_;
131 132
132 const QuicClock* clock_; 133 const QuicClock* clock_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 135 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
135 }; 136 };
136 137
137 } // namespace net 138 } // namespace net
138 139
139 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 140 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_bytes_sender_test.cc ('k') | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698