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

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

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void OnCongestionEvent(bool rtt_updated, 47 void OnCongestionEvent(bool rtt_updated,
48 QuicByteCount bytes_in_flight, 48 QuicByteCount bytes_in_flight,
49 const CongestionVector& acked_packets, 49 const CongestionVector& acked_packets,
50 const CongestionVector& lost_packets) override; 50 const CongestionVector& lost_packets) override;
51 bool OnPacketSent(QuicTime sent_time, 51 bool OnPacketSent(QuicTime sent_time,
52 QuicByteCount bytes_in_flight, 52 QuicByteCount bytes_in_flight,
53 QuicPacketNumber packet_number, 53 QuicPacketNumber packet_number,
54 QuicByteCount bytes, 54 QuicByteCount bytes,
55 HasRetransmittableData is_retransmittable) override; 55 HasRetransmittableData is_retransmittable) override;
56 void OnRetransmissionTimeout(bool packets_retransmitted) override; 56 void OnRetransmissionTimeout(bool packets_retransmitted) override;
57 void OnConnectionMigration() override {}
57 QuicTime::Delta TimeUntilSend( 58 QuicTime::Delta TimeUntilSend(
58 QuicTime now, 59 QuicTime now,
59 QuicByteCount bytes_in_flight, 60 QuicByteCount bytes_in_flight,
60 HasRetransmittableData has_retransmittable_data) const override; 61 HasRetransmittableData has_retransmittable_data) const override;
61 QuicBandwidth PacingRate() const override; 62 QuicBandwidth PacingRate() const override;
62 QuicBandwidth BandwidthEstimate() const override; 63 QuicBandwidth BandwidthEstimate() const override;
63 QuicTime::Delta RetransmissionDelay() const override; 64 QuicTime::Delta RetransmissionDelay() const override;
64 QuicByteCount GetCongestionWindow() const override; 65 QuicByteCount GetCongestionWindow() const override;
65 bool InSlowStart() const override; 66 bool InSlowStart() const override;
66 bool InRecovery() const override; 67 bool InRecovery() const override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Whether the last loss event caused us to exit slowstart. Used for stats 129 // Whether the last loss event caused us to exit slowstart. Used for stats
129 // collection of slowstart_packets_lost. 130 // collection of slowstart_packets_lost.
130 bool last_cutback_exited_slowstart_; 131 bool last_cutback_exited_slowstart_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); 133 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender);
133 }; 134 };
134 135
135 } // namespace net 136 } // namespace net
136 137
137 #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_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698