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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void OnCongestionEvent(bool rtt_updated, 49 void OnCongestionEvent(bool rtt_updated,
50 QuicByteCount bytes_in_flight, 50 QuicByteCount bytes_in_flight,
51 const CongestionVector& acked_packets, 51 const CongestionVector& acked_packets,
52 const CongestionVector& lost_packets) override; 52 const CongestionVector& lost_packets) override;
53 bool OnPacketSent(QuicTime sent_time, 53 bool OnPacketSent(QuicTime sent_time,
54 QuicByteCount bytes_in_flight, 54 QuicByteCount bytes_in_flight,
55 QuicPacketNumber packet_number, 55 QuicPacketNumber packet_number,
56 QuicByteCount bytes, 56 QuicByteCount bytes,
57 HasRetransmittableData is_retransmittable) override; 57 HasRetransmittableData is_retransmittable) override;
58 void OnRetransmissionTimeout(bool packets_retransmitted) override; 58 void OnRetransmissionTimeout(bool packets_retransmitted) override;
59 void OnConnectionMigration() override {}
59 QuicTime::Delta TimeUntilSend( 60 QuicTime::Delta TimeUntilSend(
60 QuicTime now, 61 QuicTime now,
61 QuicByteCount bytes_in_flight, 62 QuicByteCount bytes_in_flight,
62 HasRetransmittableData has_retransmittable_data) const override; 63 HasRetransmittableData has_retransmittable_data) const override;
63 QuicBandwidth PacingRate() const override; 64 QuicBandwidth PacingRate() const override;
64 QuicBandwidth BandwidthEstimate() const override; 65 QuicBandwidth BandwidthEstimate() const override;
65 QuicTime::Delta RetransmissionDelay() const override; 66 QuicTime::Delta RetransmissionDelay() const override;
66 QuicByteCount GetCongestionWindow() const override; 67 QuicByteCount GetCongestionWindow() const override;
67 bool InSlowStart() const override; 68 bool InSlowStart() const override;
68 bool InRecovery() const override; 69 bool InRecovery() const override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 // Maximum number of outstanding packets for tcp. 131 // Maximum number of outstanding packets for tcp.
131 QuicPacketCount max_tcp_congestion_window_; 132 QuicPacketCount max_tcp_congestion_window_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 134 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
134 }; 135 };
135 136
136 } // namespace net 137 } // namespace net
137 138
138 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 139 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_bytes_sender.h ('k') | net/quic/crypto/crypto_handshake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698