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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_received_packet_manager.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const QuicClock* clock, 94 const QuicClock* clock,
95 QuicConnectionStats* stats, 95 QuicConnectionStats* stats,
96 CongestionControlType congestion_control_type, 96 CongestionControlType congestion_control_type,
97 LossDetectionType loss_type, 97 LossDetectionType loss_type,
98 bool is_secure); 98 bool is_secure);
99 virtual ~QuicSentPacketManager(); 99 virtual ~QuicSentPacketManager();
100 100
101 virtual void SetFromConfig(const QuicConfig& config); 101 virtual void SetFromConfig(const QuicConfig& config);
102 102
103 // Pass the CachedNetworkParameters to the send algorithm. 103 // Pass the CachedNetworkParameters to the send algorithm.
104 void ResumeConnectionState( 104 // Returns true if this changes the initial connection state.
105 bool ResumeConnectionState(
105 const CachedNetworkParameters& cached_network_params); 106 const CachedNetworkParameters& cached_network_params);
106 107
107 void SetNumOpenStreams(size_t num_streams); 108 void SetNumOpenStreams(size_t num_streams);
108 109
109 void SetHandshakeConfirmed() { handshake_confirmed_ = true; } 110 void SetHandshakeConfirmed() { handshake_confirmed_ = true; }
110 111
111 // Processes the incoming ack. 112 // Processes the incoming ack.
112 void OnIncomingAck(const QuicAckFrame& ack_frame, 113 void OnIncomingAck(const QuicAckFrame& ack_frame,
113 QuicTime ack_receive_time); 114 QuicTime ack_receive_time);
114 115
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Records bandwidth from server to client in normal operation, over periods 405 // Records bandwidth from server to client in normal operation, over periods
405 // of time with no loss events. 406 // of time with no loss events.
406 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 407 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
407 408
408 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 409 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
409 }; 410 };
410 411
411 } // namespace net 412 } // namespace net
412 413
413 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 414 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_received_packet_manager.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698