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

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

Issue 1980783002: Only set one QUIC sending alarm at once. Flag protected by --quic_only_one_sending_alarm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121671674
Patch Set: Created 4 years, 7 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_flags.cc ('k') | no next file » | 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 void CancelRetransmissionsForStream(QuicStreamId stream_id); 234 void CancelRetransmissionsForStream(QuicStreamId stream_id);
235 235
236 // Enables pacing if it has not already been enabled. 236 // Enables pacing if it has not already been enabled.
237 void EnablePacing(); 237 void EnablePacing();
238 238
239 // Called when peer address changes and the connection migrates. 239 // Called when peer address changes and the connection migrates.
240 void OnConnectionMigration(PeerAddressChangeType type); 240 void OnConnectionMigration(PeerAddressChangeType type);
241 241
242 bool using_pacing() const { return using_pacing_; } 242 bool using_pacing() const { return using_pacing_; }
243 243
244 bool handshake_confirmed() const { return handshake_confirmed_; }
245
244 void set_debug_delegate(DebugDelegate* debug_delegate) { 246 void set_debug_delegate(DebugDelegate* debug_delegate) {
245 debug_delegate_ = debug_delegate; 247 debug_delegate_ = debug_delegate;
246 } 248 }
247 249
248 QuicPacketNumber largest_observed() const { 250 QuicPacketNumber largest_observed() const {
249 return unacked_packets_.largest_observed(); 251 return unacked_packets_.largest_observed();
250 } 252 }
251 253
252 QuicPacketNumber largest_sent_packet() const { 254 QuicPacketNumber largest_sent_packet() const {
253 return unacked_packets_.largest_sent_packet(); 255 return unacked_packets_.largest_sent_packet();
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // Records bandwidth from server to client in normal operation, over periods 454 // Records bandwidth from server to client in normal operation, over periods
453 // of time with no loss events. 455 // of time with no loss events.
454 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 456 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
455 457
456 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 458 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
457 }; 459 };
458 460
459 } // namespace net 461 } // namespace net
460 462
461 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 463 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698