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

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

Issue 125253004: Simplify RTO interaction between the QUIC sent packet manager and the (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
« no previous file with comments | « no previous file | net/quic/congestion_control/fix_rate_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Fix rate send side congestion control, used for testing. 5 // Fix rate send side congestion control, used for testing.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 QuicByteCount acked_bytes, 34 QuicByteCount acked_bytes,
35 QuicTime::Delta rtt) OVERRIDE; 35 QuicTime::Delta rtt) OVERRIDE;
36 virtual void OnPacketLost(QuicPacketSequenceNumber sequence_number, 36 virtual void OnPacketLost(QuicPacketSequenceNumber sequence_number,
37 QuicTime ack_receive_time) OVERRIDE; 37 QuicTime ack_receive_time) OVERRIDE;
38 virtual bool OnPacketSent( 38 virtual bool OnPacketSent(
39 QuicTime sent_time, 39 QuicTime sent_time,
40 QuicPacketSequenceNumber sequence_number, 40 QuicPacketSequenceNumber sequence_number,
41 QuicByteCount bytes, 41 QuicByteCount bytes,
42 TransmissionType transmission_type, 42 TransmissionType transmission_type,
43 HasRetransmittableData has_retransmittable_data) OVERRIDE; 43 HasRetransmittableData has_retransmittable_data) OVERRIDE;
44 virtual void OnRetransmissionTimeout() OVERRIDE; 44 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE;
45 virtual void OnPacketAbandoned(QuicPacketSequenceNumber sequence_number, 45 virtual void OnPacketAbandoned(QuicPacketSequenceNumber sequence_number,
46 QuicByteCount abandoned_bytes) OVERRIDE; 46 QuicByteCount abandoned_bytes) OVERRIDE;
47 virtual QuicTime::Delta TimeUntilSend( 47 virtual QuicTime::Delta TimeUntilSend(
48 QuicTime now, 48 QuicTime now,
49 TransmissionType transmission_type, 49 TransmissionType transmission_type,
50 HasRetransmittableData has_retransmittable_data, 50 HasRetransmittableData has_retransmittable_data,
51 IsHandshake handshake) OVERRIDE; 51 IsHandshake handshake) OVERRIDE;
52 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE; 52 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE;
53 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE; 53 virtual QuicTime::Delta SmoothedRtt() const OVERRIDE;
54 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE; 54 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE;
55 virtual QuicByteCount GetCongestionWindow() const OVERRIDE; 55 virtual QuicByteCount GetCongestionWindow() const OVERRIDE;
56 // End implementation of SendAlgorithmInterface. 56 // End implementation of SendAlgorithmInterface.
57 57
58 private: 58 private:
59 QuicByteCount CongestionWindow(); 59 QuicByteCount CongestionWindow();
60 60
61 QuicBandwidth bitrate_; 61 QuicBandwidth bitrate_;
62 QuicByteCount max_segment_size_; 62 QuicByteCount max_segment_size_;
63 LeakyBucket fix_rate_leaky_bucket_; 63 LeakyBucket fix_rate_leaky_bucket_;
64 PacedSender paced_sender_; 64 PacedSender paced_sender_;
65 QuicByteCount data_in_flight_; 65 QuicByteCount data_in_flight_;
66 QuicTime::Delta latest_rtt_; 66 QuicTime::Delta latest_rtt_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(FixRateSender); 68 DISALLOW_COPY_AND_ASSIGN(FixRateSender);
69 }; 69 };
70 70
71 } // namespace net 71 } // namespace net
72 72
73 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 73 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/congestion_control/fix_rate_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698