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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual ~NetworkChangeVisitor() {} | 47 virtual ~NetworkChangeVisitor() {} |
48 | 48 |
49 // Called when congestion window or RTT may have changed. | 49 // Called when congestion window or RTT may have changed. |
50 virtual void OnCongestionChange() = 0; | 50 virtual void OnCongestionChange() = 0; |
51 | 51 |
52 // Called with the path may be degrading. Note that the path may only be | 52 // Called with the path may be degrading. Note that the path may only be |
53 // temporarily degrading. | 53 // temporarily degrading. |
54 // TODO(jri): With multipath, this method should probably have a path_id | 54 // TODO(jri): With multipath, this method should probably have a path_id |
55 // parameter, and should maybe result in the path being marked as inactive. | 55 // parameter, and should maybe result in the path being marked as inactive. |
56 virtual void OnPathDegrading() = 0; | 56 virtual void OnPathDegrading() = 0; |
| 57 |
| 58 // Called when the Path MTU may have increased. |
| 59 virtual void OnPathMtuIncreased(QuicPacketLength packet_size) = 0; |
57 }; | 60 }; |
58 | 61 |
59 virtual ~QuicSentPacketManagerInterface() {} | 62 virtual ~QuicSentPacketManagerInterface() {} |
60 | 63 |
61 virtual void SetFromConfig(const QuicConfig& config) = 0; | 64 virtual void SetFromConfig(const QuicConfig& config) = 0; |
62 | 65 |
63 // Resumes connection state on the default path. | 66 // Resumes connection state on the default path. |
64 virtual void ResumeConnectionState( | 67 virtual void ResumeConnectionState( |
65 const CachedNetworkParameters& cached_network_params, | 68 const CachedNetworkParameters& cached_network_params, |
66 bool max_bandwidth_resumption) = 0; | 69 bool max_bandwidth_resumption) = 0; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 188 |
186 // 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 |
187 // path. | 190 // path. |
188 virtual size_t GetConsecutiveRtoCount() const = 0; | 191 virtual size_t GetConsecutiveRtoCount() const = 0; |
189 virtual size_t GetConsecutiveTlpCount() const = 0; | 192 virtual size_t GetConsecutiveTlpCount() const = 0; |
190 }; | 193 }; |
191 | 194 |
192 } // namespace net | 195 } // namespace net |
193 | 196 |
194 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ | 197 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_INTERFACE_H_ |
OLD | NEW |