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

Side by Side Diff: net/quic/core/congestion_control/prr_sender.h

Issue 2566703002: Various formatting cleanups to net/quic/core/frames (Closed)
Patch Set: Fix Created 4 years 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
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 // Implements Proportional Rate Reduction (PRR) per RFC 6937. 5 // Implements Proportional Rate Reduction (PRR) per RFC 6937.
6 6
7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_ 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_ 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_
9 9
10 #include <stddef.h>
11
12 #include "net/quic/core/quic_bandwidth.h" 10 #include "net/quic/core/quic_bandwidth.h"
13 #include "net/quic/core/quic_time.h" 11 #include "net/quic/core/quic_time.h"
14 #include "net/quic/platform/api/quic_export.h" 12 #include "net/quic/platform/api/quic_export.h"
15 13
16 namespace net { 14 namespace net {
17 15
18 class QUIC_EXPORT_PRIVATE PrrSender { 16 class QUIC_EXPORT_PRIVATE PrrSender {
19 public: 17 public:
20 PrrSender(); 18 PrrSender();
21 // OnPacketLost should be called on the first loss that triggers a recovery 19 // OnPacketLost should be called on the first loss that triggers a recovery
(...skipping 14 matching lines...) Expand all
36 QuicByteCount bytes_delivered_since_loss_; 34 QuicByteCount bytes_delivered_since_loss_;
37 size_t ack_count_since_loss_; 35 size_t ack_count_since_loss_;
38 36
39 // The congestion window before the last loss event. 37 // The congestion window before the last loss event.
40 QuicByteCount bytes_in_flight_before_loss_; 38 QuicByteCount bytes_in_flight_before_loss_;
41 }; 39 };
42 40
43 } // namespace net 41 } // namespace net
44 42
45 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_ 43 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_PRR_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/pacing_sender.cc ('k') | net/quic/core/congestion_control/prr_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698