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

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

Issue 355573007: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added NET_EXPORT_PRIVATE for ContainsQuicTag Created 6 years, 5 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 bytes_in_flight, 34 QuicByteCount bytes_in_flight,
35 const CongestionMap& acked_packets, 35 const CongestionMap& acked_packets,
36 const CongestionMap& lost_packets) OVERRIDE; 36 const CongestionMap& lost_packets) OVERRIDE;
37 virtual bool OnPacketSent( 37 virtual bool OnPacketSent(
38 QuicTime sent_time, 38 QuicTime sent_time,
39 QuicByteCount bytes_in_flight, 39 QuicByteCount bytes_in_flight,
40 QuicPacketSequenceNumber sequence_number, 40 QuicPacketSequenceNumber sequence_number,
41 QuicByteCount bytes, 41 QuicByteCount bytes,
42 HasRetransmittableData has_retransmittable_data) OVERRIDE; 42 HasRetransmittableData has_retransmittable_data) OVERRIDE;
43 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE; 43 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE;
44 virtual void RevertRetransmissionTimeout() OVERRIDE;
44 virtual QuicTime::Delta TimeUntilSend( 45 virtual QuicTime::Delta TimeUntilSend(
45 QuicTime now, 46 QuicTime now,
46 QuicByteCount bytes_in_flight, 47 QuicByteCount bytes_in_flight,
47 HasRetransmittableData has_retransmittable_data) const OVERRIDE; 48 HasRetransmittableData has_retransmittable_data) const OVERRIDE;
48 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE; 49 virtual QuicBandwidth BandwidthEstimate() const OVERRIDE;
49 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE; 50 virtual QuicTime::Delta RetransmissionDelay() const OVERRIDE;
50 virtual QuicByteCount GetCongestionWindow() const OVERRIDE; 51 virtual QuicByteCount GetCongestionWindow() const OVERRIDE;
51 // End implementation of SendAlgorithmInterface. 52 // End implementation of SendAlgorithmInterface.
52 53
53 private: 54 private:
54 QuicByteCount CongestionWindow() const; 55 QuicByteCount CongestionWindow() const;
55 56
56 const RttStats* rtt_stats_; 57 const RttStats* rtt_stats_;
57 QuicBandwidth bitrate_; 58 QuicBandwidth bitrate_;
58 QuicByteCount max_segment_size_; 59 QuicByteCount max_segment_size_;
59 LeakyBucket fix_rate_leaky_bucket_; 60 LeakyBucket fix_rate_leaky_bucket_;
60 QuicTime::Delta latest_rtt_; 61 QuicTime::Delta latest_rtt_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(FixRateSender); 63 DISALLOW_COPY_AND_ASSIGN(FixRateSender);
63 }; 64 };
64 65
65 } // namespace net 66 } // namespace net
66 67
67 #endif // NET_QUIC_CONGESTION_CONTROL_FIX_RATE_SENDER_H_ 68 #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