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

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

Issue 126513003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 5 // TCP cubic send side congestion algorithm, emulates the behavior of
6 // TCP cubic. 6 // TCP cubic.
7 7
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void OnPacketAcked(QuicPacketSequenceNumber acked_sequence_number, 45 virtual void OnPacketAcked(QuicPacketSequenceNumber acked_sequence_number,
46 QuicByteCount acked_bytes, 46 QuicByteCount acked_bytes,
47 QuicTime::Delta rtt) OVERRIDE; 47 QuicTime::Delta rtt) OVERRIDE;
48 virtual void OnPacketLost(QuicPacketSequenceNumber largest_loss, 48 virtual void OnPacketLost(QuicPacketSequenceNumber largest_loss,
49 QuicTime ack_receive_time) OVERRIDE; 49 QuicTime ack_receive_time) OVERRIDE;
50 virtual bool OnPacketSent(QuicTime sent_time, 50 virtual bool OnPacketSent(QuicTime sent_time,
51 QuicPacketSequenceNumber sequence_number, 51 QuicPacketSequenceNumber sequence_number,
52 QuicByteCount bytes, 52 QuicByteCount bytes,
53 TransmissionType transmission_type, 53 TransmissionType transmission_type,
54 HasRetransmittableData is_retransmittable) OVERRIDE; 54 HasRetransmittableData is_retransmittable) OVERRIDE;
55 virtual void OnRetransmissionTimeout() OVERRIDE; 55 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE;
56 virtual void OnPacketAbandoned(QuicPacketSequenceNumber sequence_number, 56 virtual void OnPacketAbandoned(QuicPacketSequenceNumber sequence_number,
57 QuicByteCount abandoned_bytes) OVERRIDE; 57 QuicByteCount abandoned_bytes) OVERRIDE;
58 virtual QuicTime::Delta TimeUntilSend( 58 virtual QuicTime::Delta TimeUntilSend(
59 QuicTime now, 59 QuicTime now,
60 TransmissionType transmission_type, 60 TransmissionType transmission_type,
61 HasRetransmittableData has_retransmittable_data, 61 HasRetransmittableData has_retransmittable_data,
62 IsHandshake handshake) OVERRIDE; 62 IsHandshake handshake) OVERRIDE;
63 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE; 63 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE;
64 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE; 64 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE;
65 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE; 65 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Approximation of standard deviation, the error is roughly 1.25 times 127 // Approximation of standard deviation, the error is roughly 1.25 times
128 // larger than the standard deviation, for a normally distributed signal. 128 // larger than the standard deviation, for a normally distributed signal.
129 QuicTime::Delta mean_deviation_; 129 QuicTime::Delta mean_deviation_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
132 }; 132 };
133 133
134 } // namespace net 134 } // namespace net
135 135
136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698