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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 TCP cubic. 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include <stdint.h>
11
12 #include "base/macros.h"
11 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
12 #include "net/quic/congestion_control/cubic_bytes.h" 14 #include "net/quic/congestion_control/cubic_bytes.h"
13 #include "net/quic/congestion_control/hybrid_slow_start.h" 15 #include "net/quic/congestion_control/hybrid_slow_start.h"
14 #include "net/quic/congestion_control/prr_sender.h" 16 #include "net/quic/congestion_control/prr_sender.h"
15 #include "net/quic/congestion_control/send_algorithm_interface.h" 17 #include "net/quic/congestion_control/send_algorithm_interface.h"
16 #include "net/quic/quic_bandwidth.h" 18 #include "net/quic/quic_bandwidth.h"
17 #include "net/quic/quic_connection_stats.h" 19 #include "net/quic/quic_connection_stats.h"
18 #include "net/quic/quic_protocol.h" 20 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_time.h" 21 #include "net/quic/quic_time.h"
20 22
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 HybridSlowStart hybrid_slow_start_; 92 HybridSlowStart hybrid_slow_start_;
91 CubicBytes cubic_; 93 CubicBytes cubic_;
92 PrrSender prr_; 94 PrrSender prr_;
93 const RttStats* rtt_stats_; 95 const RttStats* rtt_stats_;
94 QuicConnectionStats* stats_; 96 QuicConnectionStats* stats_;
95 97
96 // If true, Reno congestion control is used instead of Cubic. 98 // If true, Reno congestion control is used instead of Cubic.
97 const bool reno_; 99 const bool reno_;
98 100
99 // Number of connections to simulate. 101 // Number of connections to simulate.
100 uint32 num_connections_; 102 uint32_t num_connections_;
101 103
102 // ACK counter for the Reno implementation. 104 // ACK counter for the Reno implementation.
103 uint64 num_acked_packets_; 105 uint64_t num_acked_packets_;
104 106
105 // Track the largest packet that has been sent. 107 // Track the largest packet that has been sent.
106 QuicPacketNumber largest_sent_packet_number_; 108 QuicPacketNumber largest_sent_packet_number_;
107 109
108 // Track the largest packet that has been acked. 110 // Track the largest packet that has been acked.
109 QuicPacketNumber largest_acked_packet_number_; 111 QuicPacketNumber largest_acked_packet_number_;
110 112
111 // Track the largest packet number outstanding when a CWND cutback occurs. 113 // Track the largest packet number outstanding when a CWND cutback occurs.
112 QuicPacketNumber largest_sent_at_last_cutback_; 114 QuicPacketNumber largest_sent_at_last_cutback_;
113 115
(...skipping 23 matching lines...) Expand all
137 // Initial maximum TCP congestion window in bytes. This variable can only be 139 // Initial maximum TCP congestion window in bytes. This variable can only be
138 // set when this algorithm is created. 140 // set when this algorithm is created.
139 const QuicByteCount initial_max_tcp_congestion_window_; 141 const QuicByteCount initial_max_tcp_congestion_window_;
140 142
141 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); 143 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender);
142 }; 144 };
143 145
144 } // namespace net 146 } // namespace net
145 147
146 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 148 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_simulator.h ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698