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

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

Issue 1003863006: Rollback of merge internal change: 87346681. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Make_SentPacketManager_remove_pending_88507368
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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_BYTES_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 namespace test { 25 namespace test {
26 class TcpCubicBytesSenderPeer; 26 class TcpCubicBytesSenderPeer;
27 } // namespace test 27 } // namespace test
28 28
29 class NET_EXPORT_PRIVATE TcpCubicBytesSender : public SendAlgorithmInterface { 29 class NET_EXPORT_PRIVATE TcpCubicBytesSender : public SendAlgorithmInterface {
30 public: 30 public:
31 TcpCubicBytesSender(const QuicClock* clock, 31 TcpCubicBytesSender(const QuicClock* clock,
32 const RttStats* rtt_stats, 32 const RttStats* rtt_stats,
33 bool reno, 33 bool reno,
34 QuicPacketCount initial_tcp_congestion_window, 34 QuicPacketCount initial_tcp_congestion_window,
35 QuicPacketCount max_congestion_window,
35 QuicConnectionStats* stats); 36 QuicConnectionStats* stats);
36 ~TcpCubicBytesSender() override; 37 ~TcpCubicBytesSender() override;
37 38
38 // Start implementation of SendAlgorithmInterface. 39 // Start implementation of SendAlgorithmInterface.
39 void SetFromConfig(const QuicConfig& config, 40 void SetFromConfig(const QuicConfig& config,
40 Perspective perspective, 41 Perspective perspective,
41 bool using_pacing) override; 42 bool using_pacing) override;
42 bool ResumeConnectionState( 43 bool ResumeConnectionState(
43 const CachedNetworkParameters& cached_network_params) override; 44 const CachedNetworkParameters& cached_network_params) override;
44 void SetNumEmulatedConnections(int num_connections) override; 45 void SetNumEmulatedConnections(int num_connections) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 // Track the largest sequence number outstanding when a CWND cutback occurs. 110 // Track the largest sequence number outstanding when a CWND cutback occurs.
110 QuicPacketSequenceNumber largest_sent_at_last_cutback_; 111 QuicPacketSequenceNumber largest_sent_at_last_cutback_;
111 112
112 // Congestion window in bytes. 113 // Congestion window in bytes.
113 QuicByteCount congestion_window_; 114 QuicByteCount congestion_window_;
114 115
115 // Minimum congestion window in bytes. 116 // Minimum congestion window in bytes.
116 QuicByteCount min_congestion_window_; 117 QuicByteCount min_congestion_window_;
117 118
119 // Maximum congestion window in bytes.
120 QuicByteCount max_congestion_window_;
121
118 // Slow start congestion window in bytes, aka ssthresh. 122 // Slow start congestion window in bytes, aka ssthresh.
119 QuicByteCount slowstart_threshold_; 123 QuicByteCount slowstart_threshold_;
120 124
121 // Whether the last loss event caused us to exit slowstart. Used for stats 125 // Whether the last loss event caused us to exit slowstart. Used for stats
122 // collection of slowstart_packets_lost. 126 // collection of slowstart_packets_lost.
123 bool last_cutback_exited_slowstart_; 127 bool last_cutback_exited_slowstart_;
124 128
125 const QuicClock* clock_; 129 const QuicClock* clock_;
126 130
127 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); 131 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender);
128 }; 132 };
129 133
130 } // namespace net 134 } // namespace net
131 135
132 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698