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

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

Issue 1037633002: Add a QUIC connection option(BWMX) to resume to the max bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Populate_RTT_info_89043159
Patch Set: Created 5 years, 9 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.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 CongestionControlType congestion_control_type, 99 CongestionControlType congestion_control_type,
100 LossDetectionType loss_type, 100 LossDetectionType loss_type,
101 bool is_secure); 101 bool is_secure);
102 virtual ~QuicSentPacketManager(); 102 virtual ~QuicSentPacketManager();
103 103
104 virtual void SetFromConfig(const QuicConfig& config); 104 virtual void SetFromConfig(const QuicConfig& config);
105 105
106 // Pass the CachedNetworkParameters to the send algorithm. 106 // Pass the CachedNetworkParameters to the send algorithm.
107 // Returns true if this changes the initial connection state. 107 // Returns true if this changes the initial connection state.
108 bool ResumeConnectionState( 108 bool ResumeConnectionState(
109 const CachedNetworkParameters& cached_network_params); 109 const CachedNetworkParameters& cached_network_params,
110 bool max_bandwidth_resumption);
110 111
111 void SetNumOpenStreams(size_t num_streams); 112 void SetNumOpenStreams(size_t num_streams);
112 113
113 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } 114 void SetHandshakeConfirmed() { handshake_confirmed_ = true; }
114 115
115 // Processes the incoming ack. 116 // Processes the incoming ack.
116 void OnIncomingAck(const QuicAckFrame& ack_frame, 117 void OnIncomingAck(const QuicAckFrame& ack_frame,
117 QuicTime ack_receive_time); 118 QuicTime ack_receive_time);
118 119
119 // Returns true if the non-FEC packet |sequence_number| is unacked. 120 // Returns true if the non-FEC packet |sequence_number| is unacked.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // Records bandwidth from server to client in normal operation, over periods 411 // Records bandwidth from server to client in normal operation, over periods
411 // of time with no loss events. 412 // of time with no loss events.
412 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 413 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
413 414
414 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 415 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
415 }; 416 };
416 417
417 } // namespace net 418 } // namespace net
418 419
419 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 420 #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