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

Side by Side Diff: net/quic/quic_sent_packet_manager.h

Issue 1665303003: Adds plumbing for QUIC early connection migration. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Created 4 years, 10 months 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/quic/quic_connection_test.cc ('k') | net/quic/quic_sent_packet_manager.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 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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698