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

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

Issue 1037643002: Land Recent QUIC Changes until 03/22/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deleted duplicated using statements in net/tools/quic/test_tools/quic_test_utils.cc 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 23 matching lines...) Expand all
34 QuicPacketCount initial_tcp_congestion_window, 34 QuicPacketCount initial_tcp_congestion_window,
35 QuicPacketCount max_congestion_window, 35 QuicPacketCount max_congestion_window,
36 QuicConnectionStats* stats); 36 QuicConnectionStats* stats);
37 ~TcpCubicBytesSender() override; 37 ~TcpCubicBytesSender() override;
38 38
39 // Start implementation of SendAlgorithmInterface. 39 // Start implementation of SendAlgorithmInterface.
40 void SetFromConfig(const QuicConfig& config, 40 void SetFromConfig(const QuicConfig& config,
41 Perspective perspective, 41 Perspective perspective,
42 bool using_pacing) override; 42 bool using_pacing) override;
43 bool ResumeConnectionState( 43 bool ResumeConnectionState(
44 const CachedNetworkParameters& cached_network_params) override; 44 const CachedNetworkParameters& cached_network_params,
45 bool max_bandwidth_resumption) override;
45 void SetNumEmulatedConnections(int num_connections) override; 46 void SetNumEmulatedConnections(int num_connections) override;
47 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override;
46 void OnCongestionEvent(bool rtt_updated, 48 void OnCongestionEvent(bool rtt_updated,
47 QuicByteCount bytes_in_flight, 49 QuicByteCount bytes_in_flight,
48 const CongestionVector& acked_packets, 50 const CongestionVector& acked_packets,
49 const CongestionVector& lost_packets) override; 51 const CongestionVector& lost_packets) override;
50 bool OnPacketSent(QuicTime sent_time, 52 bool OnPacketSent(QuicTime sent_time,
51 QuicByteCount bytes_in_flight, 53 QuicByteCount bytes_in_flight,
52 QuicPacketSequenceNumber sequence_number, 54 QuicPacketSequenceNumber sequence_number,
53 QuicByteCount bytes, 55 QuicByteCount bytes,
54 HasRetransmittableData is_retransmittable) override; 56 HasRetransmittableData is_retransmittable) override;
55 void OnRetransmissionTimeout(bool packets_retransmitted) override; 57 void OnRetransmissionTimeout(bool packets_retransmitted) override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool last_cutback_exited_slowstart_; 129 bool last_cutback_exited_slowstart_;
128 130
129 const QuicClock* clock_; 131 const QuicClock* clock_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); 133 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender);
132 }; 134 };
133 135
134 } // namespace net 136 } // namespace net
135 137
136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 138 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('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