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

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

Issue 23597045: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged QuicPriority to RequestPriority changes Created 7 years, 3 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 23 matching lines...) Expand all
34 34
35 // Start implementation of SendAlgorithmInterface. 35 // Start implementation of SendAlgorithmInterface.
36 virtual void OnIncomingQuicCongestionFeedbackFrame( 36 virtual void OnIncomingQuicCongestionFeedbackFrame(
37 const QuicCongestionFeedbackFrame& feedback, 37 const QuicCongestionFeedbackFrame& feedback,
38 QuicTime feedback_receive_time, 38 QuicTime feedback_receive_time,
39 const SentPacketsMap& sent_packets) OVERRIDE; 39 const SentPacketsMap& sent_packets) OVERRIDE;
40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, 40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number,
41 QuicByteCount acked_bytes, 41 QuicByteCount acked_bytes,
42 QuicTime::Delta rtt) OVERRIDE; 42 QuicTime::Delta rtt) OVERRIDE;
43 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; 43 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE;
44 virtual void SentPacket(QuicTime sent_time, 44 virtual bool SentPacket(
45 QuicPacketSequenceNumber sequence_number, 45 QuicTime sent_time,
46 QuicByteCount bytes, 46 QuicPacketSequenceNumber sequence_number,
47 Retransmission is_retransmission) OVERRIDE; 47 QuicByteCount bytes,
48 Retransmission is_retransmission,
49 HasRetransmittableData is_retransmittable) OVERRIDE;
48 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, 50 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number,
49 QuicByteCount abandoned_bytes) OVERRIDE; 51 QuicByteCount abandoned_bytes) OVERRIDE;
50 virtual QuicTime::Delta TimeUntilSend( 52 virtual QuicTime::Delta TimeUntilSend(
51 QuicTime now, 53 QuicTime now,
52 Retransmission is_retransmission, 54 Retransmission is_retransmission,
53 HasRetransmittableData has_retransmittable_data, 55 HasRetransmittableData has_retransmittable_data,
54 IsHandshake handshake) OVERRIDE; 56 IsHandshake handshake) OVERRIDE;
55 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; 57 virtual QuicBandwidth BandwidthEstimate() OVERRIDE;
56 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; 58 virtual QuicTime::Delta SmoothedRtt() OVERRIDE;
57 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; 59 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Approximation of standard deviation, the error is roughly 1.25 times 111 // Approximation of standard deviation, the error is roughly 1.25 times
110 // larger than the standard deviation, for a normally distributed signal. 112 // larger than the standard deviation, for a normally distributed signal.
111 QuicTime::Delta mean_deviation_; 113 QuicTime::Delta mean_deviation_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 115 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
114 }; 116 };
115 117
116 } // namespace net 118 } // namespace net
117 119
118 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 120 #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