| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
| 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
| 10 #include "net/quic/quic_sustained_bandwidth_recorder.h" | 10 #include "net/quic/quic_sustained_bandwidth_recorder.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual const QuicTime GetRetransmissionTime() const = 0; | 133 virtual const QuicTime GetRetransmissionTime() const = 0; |
| 134 | 134 |
| 135 // Returns the rtt stats of the default path. | 135 // Returns the rtt stats of the default path. |
| 136 virtual const RttStats* GetRttStats() const = 0; | 136 virtual const RttStats* GetRttStats() const = 0; |
| 137 | 137 |
| 138 // Returns the estimated bandwidth on default path calculated by the | 138 // Returns the estimated bandwidth on default path calculated by the |
| 139 // congestion algorithm. | 139 // congestion algorithm. |
| 140 virtual QuicBandwidth BandwidthEstimate() const = 0; | 140 virtual QuicBandwidth BandwidthEstimate() const = 0; |
| 141 | 141 |
| 142 // Returns the sustained bandwidth recorder on the default path. | 142 // Returns the sustained bandwidth recorder on the default path. |
| 143 virtual const QuicSustainedBandwidthRecorder& SustainedBandwidthRecorder() | 143 virtual const QuicSustainedBandwidthRecorder* SustainedBandwidthRecorder() |
| 144 const = 0; | 144 const = 0; |
| 145 | 145 |
| 146 // Returns the size of the current congestion window on default path in number | 146 // Returns the size of the current congestion window on default path in number |
| 147 // of kDefaultTCPMSS-sized segments. | 147 // of kDefaultTCPMSS-sized segments. |
| 148 virtual QuicPacketCount GetCongestionWindowInTcpMss() const = 0; | 148 virtual QuicPacketCount GetCongestionWindowInTcpMss() const = 0; |
| 149 | 149 |
| 150 // Determines the number of packets of length |max_packet_length| which fit in | 150 // Determines the number of packets of length |max_packet_length| which fit in |
| 151 // the congestion windows for all paths, and returns the max number of packets | 151 // the congestion windows for all paths, and returns the max number of packets |
| 152 // across all paths. | 152 // across all paths. |
| 153 virtual QuicPacketCount EstimateMaxPacketsInFlight( | 153 virtual QuicPacketCount EstimateMaxPacketsInFlight( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 // These two methods return the consecutive RTO or TLP count of the default | 189 // These two methods return the consecutive RTO or TLP count of the default |
| 190 // path. | 190 // path. |
| 191 virtual size_t GetConsecutiveRtoCount() const = 0; | 191 virtual size_t GetConsecutiveRtoCount() const = 0; |
| 192 virtual size_t GetConsecutiveTlpCount() const = 0; | 192 virtual size_t GetConsecutiveTlpCount() const = 0; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace net | 195 } // namespace net |
| 196 | 196 |
| 197 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 197 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
| OLD | NEW |