OLD | NEW |
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 // 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_BYTES_H_ | 8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_BYTES_H_ |
9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_BYTES_H_ | 9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_BYTES_H_ |
10 | 10 |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
15 #include "net/quic/quic_bandwidth.h" | 15 #include "net/quic/core/quic_bandwidth.h" |
16 #include "net/quic/quic_clock.h" | 16 #include "net/quic/core/quic_clock.h" |
17 #include "net/quic/quic_connection_stats.h" | 17 #include "net/quic/core/quic_connection_stats.h" |
18 #include "net/quic/quic_time.h" | 18 #include "net/quic/core/quic_time.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 class NET_EXPORT_PRIVATE CubicBytes { | 22 class NET_EXPORT_PRIVATE CubicBytes { |
23 public: | 23 public: |
24 explicit CubicBytes(const QuicClock* clock); | 24 explicit CubicBytes(const QuicClock* clock); |
25 | 25 |
26 void SetNumConnections(int num_connections); | 26 void SetNumConnections(int num_connections); |
27 | 27 |
28 // Call after a timeout to reset the cubic state. | 28 // Call after a timeout to reset the cubic state. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Last congestion window in packets computed by cubic function. | 89 // Last congestion window in packets computed by cubic function. |
90 QuicByteCount last_target_congestion_window_; | 90 QuicByteCount last_target_congestion_window_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(CubicBytes); | 92 DISALLOW_COPY_AND_ASSIGN(CubicBytes); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace net | 95 } // namespace net |
96 | 96 |
97 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_BYTES_H_ | 97 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_BYTES_H_ |
OLD | NEW |