| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 class NET_EXPORT_PRIVATE NetworkChangeVisitor { | 95 class NET_EXPORT_PRIVATE NetworkChangeVisitor { |
| 96 public: | 96 public: |
| 97 virtual ~NetworkChangeVisitor() {} | 97 virtual ~NetworkChangeVisitor() {} |
| 98 | 98 |
| 99 // Called when congestion window may have changed. | 99 // Called when congestion window may have changed. |
| 100 virtual void OnCongestionWindowChange() = 0; | 100 virtual void OnCongestionWindowChange() = 0; |
| 101 | 101 |
| 102 // Called when RTT may have changed, including when an RTT is read from | 102 // Called when RTT may have changed, including when an RTT is read from |
| 103 // the config. | 103 // the config. |
| 104 virtual void OnRttChange() = 0; | 104 virtual void OnRttChange() = 0; |
| 105 |
| 106 // Called with the path may be degrading. Note that the path may only be |
| 107 // temporarily degrading. |
| 108 // TODO(jri): With multipath, this method should probably have a path_id |
| 109 // parameter, and should maybe result in the path being marked as inactive. |
| 110 virtual void OnPathDegrading() = 0; |
| 105 }; | 111 }; |
| 106 | 112 |
| 107 QuicSentPacketManager(Perspective perspective, | 113 QuicSentPacketManager(Perspective perspective, |
| 108 QuicPathId path_id, | 114 QuicPathId path_id, |
| 109 const QuicClock* clock, | 115 const QuicClock* clock, |
| 110 QuicConnectionStats* stats, | 116 QuicConnectionStats* stats, |
| 111 CongestionControlType congestion_control_type, | 117 CongestionControlType congestion_control_type, |
| 112 LossDetectionType loss_type, | 118 LossDetectionType loss_type, |
| 113 MultipathDelegateInterface* delegate); | 119 MultipathDelegateInterface* delegate); |
| 114 virtual ~QuicSentPacketManager(); | 120 virtual ~QuicSentPacketManager(); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 // Records bandwidth from server to client in normal operation, over periods | 447 // Records bandwidth from server to client in normal operation, over periods |
| 442 // of time with no loss events. | 448 // of time with no loss events. |
| 443 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 449 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
| 444 | 450 |
| 445 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 451 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
| 446 }; | 452 }; |
| 447 | 453 |
| 448 } // namespace net | 454 } // namespace net |
| 449 | 455 |
| 450 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 456 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
| OLD | NEW |