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

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

Issue 1435553004: Add OnConnectionMigration method to QuicSentPacketManager. Add OnConnectionMigration interface to S… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106845785
Patch Set: Created 5 years, 1 month 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.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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // TCP segments, aka ssthresh. Some send algorithms do not define a slow 206 // TCP segments, aka ssthresh. Some send algorithms do not define a slow
207 // start threshold and will return 0. 207 // start threshold and will return 0.
208 QuicPacketCount GetSlowStartThresholdInTcpMss() const; 208 QuicPacketCount GetSlowStartThresholdInTcpMss() const;
209 209
210 // No longer retransmit data for |stream_id|. 210 // No longer retransmit data for |stream_id|.
211 void CancelRetransmissionsForStream(QuicStreamId stream_id); 211 void CancelRetransmissionsForStream(QuicStreamId stream_id);
212 212
213 // Enables pacing if it has not already been enabled. 213 // Enables pacing if it has not already been enabled.
214 void EnablePacing(); 214 void EnablePacing();
215 215
216 // Called when peer address changes and the connection migrates.
217 void OnConnectionMigration(PeerAddressChangeType type);
218
216 bool using_pacing() const { return using_pacing_; } 219 bool using_pacing() const { return using_pacing_; }
217 220
218 void set_debug_delegate(DebugDelegate* debug_delegate) { 221 void set_debug_delegate(DebugDelegate* debug_delegate) {
219 debug_delegate_ = debug_delegate; 222 debug_delegate_ = debug_delegate;
220 } 223 }
221 224
222 QuicPacketNumber largest_observed() const { 225 QuicPacketNumber largest_observed() const {
223 return unacked_packets_.largest_observed(); 226 return unacked_packets_.largest_observed();
224 } 227 }
225 228
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Records bandwidth from server to client in normal operation, over periods 400 // Records bandwidth from server to client in normal operation, over periods
398 // of time with no loss events. 401 // of time with no loss events.
399 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 402 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
400 403
401 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 404 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
402 }; 405 };
403 406
404 } // namespace net 407 } // namespace net
405 408
406 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 409 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698