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

Side by Side Diff: net/quic/congestion_control/cubic.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
« no previous file with comments | « net/proxy/proxy_service_v8.h ('k') | net/quic/congestion_control/cubic.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 // Cubic algorithm, helper class to TCP cubic. 5 // Cubic algorithm, helper class to TCP cubic.
6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf. 6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf.
7 7
8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
10 10
11 #include "base/basictypes.h" 11 #include <stdint.h>
12
13 #include "base/macros.h"
12 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
13 #include "net/quic/quic_bandwidth.h" 15 #include "net/quic/quic_bandwidth.h"
14 #include "net/quic/quic_clock.h" 16 #include "net/quic/quic_clock.h"
15 #include "net/quic/quic_connection_stats.h" 17 #include "net/quic/quic_connection_stats.h"
16 #include "net/quic/quic_time.h" 18 #include "net/quic/quic_time.h"
17 19
18 namespace net { 20 namespace net {
19 21
20 class NET_EXPORT_PRIVATE Cubic { 22 class NET_EXPORT_PRIVATE Cubic {
21 public: 23 public:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Number of acked packets since the cycle started (epoch). 80 // Number of acked packets since the cycle started (epoch).
79 QuicPacketCount acked_packets_count_; 81 QuicPacketCount acked_packets_count_;
80 82
81 // TCP Reno equivalent congestion window in packets. 83 // TCP Reno equivalent congestion window in packets.
82 QuicPacketCount estimated_tcp_congestion_window_; 84 QuicPacketCount estimated_tcp_congestion_window_;
83 85
84 // Origin point of cubic function. 86 // Origin point of cubic function.
85 QuicPacketCount origin_point_congestion_window_; 87 QuicPacketCount origin_point_congestion_window_;
86 88
87 // Time to origin point of cubic function in 2^10 fractions of a second. 89 // Time to origin point of cubic function in 2^10 fractions of a second.
88 uint32 time_to_origin_point_; 90 uint32_t time_to_origin_point_;
89 91
90 // Last congestion window in packets computed by cubic function. 92 // Last congestion window in packets computed by cubic function.
91 QuicPacketCount last_target_congestion_window_; 93 QuicPacketCount last_target_congestion_window_;
92 94
93 DISALLOW_COPY_AND_ASSIGN(Cubic); 95 DISALLOW_COPY_AND_ASSIGN(Cubic);
94 }; 96 };
95 97
96 } // namespace net 98 } // namespace net
97 99
98 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 100 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_service_v8.h ('k') | net/quic/congestion_control/cubic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698