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

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

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Style nit fixed. 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // No longer retransmit data for |stream_id|. 226 // No longer retransmit data for |stream_id|.
227 void CancelRetransmissionsForStream(QuicStreamId stream_id); 227 void CancelRetransmissionsForStream(QuicStreamId stream_id);
228 228
229 // Enables pacing if it has not already been enabled. 229 // Enables pacing if it has not already been enabled.
230 void EnablePacing(); 230 void EnablePacing();
231 231
232 // Called when peer address changes and the connection migrates. 232 // Called when peer address changes and the connection migrates.
233 void OnConnectionMigration(PeerAddressChangeType type); 233 void OnConnectionMigration(PeerAddressChangeType type);
234 234
235 // Used to determine if peer seems unresponsive. Note that the peer
236 // may only be temporarily unreachable.
237 bool IsPeerMaybeUnreachable() const;
238
235 bool using_pacing() const { return using_pacing_; } 239 bool using_pacing() const { return using_pacing_; }
236 240
237 void set_debug_delegate(DebugDelegate* debug_delegate) { 241 void set_debug_delegate(DebugDelegate* debug_delegate) {
238 debug_delegate_ = debug_delegate; 242 debug_delegate_ = debug_delegate;
239 } 243 }
240 244
241 QuicPacketNumber largest_observed() const { 245 QuicPacketNumber largest_observed() const {
242 return unacked_packets_.largest_observed(); 246 return unacked_packets_.largest_observed();
243 } 247 }
244 248
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // Records bandwidth from server to client in normal operation, over periods 448 // Records bandwidth from server to client in normal operation, over periods
445 // of time with no loss events. 449 // of time with no loss events.
446 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 450 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
447 451
448 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 452 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
449 }; 453 };
450 454
451 } // namespace net 455 } // namespace net
452 456
453 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 457 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698