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

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

Issue 125403006: Various QUIC cleanups to sync with internal code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // A send algorithm which adds pacing on top of an another send algorithm. 5 // A send algorithm which adds pacing on top of an another send algorithm.
6 // It uses the underlying sender's bandwidth estimate to determine the 6 // It uses the underlying sender's bandwidth estimate to determine the
7 // pacing rate to be used. It also takes into consideration the expected 7 // pacing rate to be used. It also takes into consideration the expected
8 // resolution of the underlying alarm mechanism to ensure that alarms are 8 // resolution of the underlying alarm mechanism to ensure that alarms are
9 // not set too aggressively, and to smooth out variations. 9 // not set too aggressively, and to smooth out variations.
10 10
11 #ifndef NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_ 11 #ifndef NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_
12 #define NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_ 12 #define NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_
13 13
14 #include <map> 14 #include <map>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "net/quic/congestion_control/send_algorithm_interface.h" 18 #include "net/quic/congestion_control/send_algorithm_interface.h"
19 #include "net/quic/quic_bandwidth.h" 19 #include "net/quic/quic_bandwidth.h"
20 #include "net/quic/quic_clock.h"
21 #include "net/quic/quic_config.h" 20 #include "net/quic/quic_config.h"
22 #include "net/quic/quic_protocol.h" 21 #include "net/quic/quic_protocol.h"
23 #include "net/quic/quic_time.h" 22 #include "net/quic/quic_time.h"
24 23
25 namespace net { 24 namespace net {
26 25
27 class NET_EXPORT_PRIVATE PacingSender : public SendAlgorithmInterface { 26 class NET_EXPORT_PRIVATE PacingSender : public SendAlgorithmInterface {
28 public: 27 public:
29 PacingSender(SendAlgorithmInterface* sender, 28 PacingSender(SendAlgorithmInterface* sender,
30 QuicTime::Delta alarm_granularity); 29 QuicTime::Delta alarm_granularity);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 QuicTime next_packet_send_time_; // When can the next packet be sent. 67 QuicTime next_packet_send_time_; // When can the next packet be sent.
69 bool was_last_send_delayed_; // True when the last send was delayed. 68 bool was_last_send_delayed_; // True when the last send was delayed.
70 QuicByteCount max_segment_size_; 69 QuicByteCount max_segment_size_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(PacingSender); 71 DISALLOW_COPY_AND_ASSIGN(PacingSender);
73 }; 72 };
74 73
75 } // namespace net 74 } // namespace net
76 75
77 #endif // NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_ 76 #endif // NET_QUIC_CONGESTION_CONTROL_PACING_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/leaky_bucket.h ('k') | net/quic/congestion_control/receive_algorithm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698