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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 QuicByteCount AvailableSendWindow(); 73 QuicByteCount AvailableSendWindow();
74 QuicByteCount SendWindow(); 74 QuicByteCount SendWindow();
75 void MaybeIncreaseCwnd(QuicPacketSequenceNumber acked_sequence_number); 75 void MaybeIncreaseCwnd(QuicPacketSequenceNumber acked_sequence_number);
76 bool IsCwndLimited() const; 76 bool IsCwndLimited() const;
77 bool InRecovery() const; 77 bool InRecovery() const;
78 // Methods for isolating PRR from the rest of TCP Cubic. 78 // Methods for isolating PRR from the rest of TCP Cubic.
79 void PrrOnPacketLost(); 79 void PrrOnPacketLost();
80 void PrrOnPacketAcked(QuicByteCount acked_bytes); 80 void PrrOnPacketAcked(QuicByteCount acked_bytes);
81 QuicTime::Delta PrrTimeUntilSend(); 81 QuicTime::Delta PrrTimeUntilSend();
82 82
83
84 HybridSlowStart hybrid_slow_start_; 83 HybridSlowStart hybrid_slow_start_;
85 Cubic cubic_; 84 Cubic cubic_;
86 const RttStats* rtt_stats_; 85 const RttStats* rtt_stats_;
87 QuicConnectionStats* stats_; 86 QuicConnectionStats* stats_;
88 87
89 // Reno provided for testing. 88 // Reno provided for testing.
90 const bool reno_; 89 const bool reno_;
91 90
92 // ACK counter for the Reno implementation. 91 // ACK counter for the Reno implementation.
93 int64 congestion_window_count_; 92 int64 congestion_window_count_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 126
128 // Maximum number of outstanding packets for tcp. 127 // Maximum number of outstanding packets for tcp.
129 QuicTcpCongestionWindow max_tcp_congestion_window_; 128 QuicTcpCongestionWindow max_tcp_congestion_window_;
130 129
131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 130 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
132 }; 131 };
133 132
134 } // namespace net 133 } // namespace net
135 134
136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 135 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698