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

Side by Side Diff: net/quic/quic_connection.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/crypto/crypto_protocol.h ('k') | net/quic/quic_connection.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Sets connection parameters from the supplied |config|. 263 // Sets connection parameters from the supplied |config|.
264 void SetFromConfig(const QuicConfig& config); 264 void SetFromConfig(const QuicConfig& config);
265 265
266 // Called by the session when sending connection state to the client. 266 // Called by the session when sending connection state to the client.
267 virtual void OnSendConnectionState( 267 virtual void OnSendConnectionState(
268 const CachedNetworkParameters& cached_network_params); 268 const CachedNetworkParameters& cached_network_params);
269 269
270 // Called by the Session when the client has provided CachedNetworkParameters. 270 // Called by the Session when the client has provided CachedNetworkParameters.
271 // Returns true if this changes the initial connection state. 271 // Returns true if this changes the initial connection state.
272 virtual bool ResumeConnectionState( 272 virtual bool ResumeConnectionState(
273 const CachedNetworkParameters& cached_network_params); 273 const CachedNetworkParameters& cached_network_params,
274 bool max_bandwidth_resumption);
274 275
275 // Sets the number of active streams on the connection for congestion control. 276 // Sets the number of active streams on the connection for congestion control.
276 void SetNumOpenStreams(size_t num_streams); 277 void SetNumOpenStreams(size_t num_streams);
277 278
278 // Send the data in |data| to the peer in as few packets as possible. 279 // Send the data in |data| to the peer in as few packets as possible.
279 // Returns a pair with the number of bytes consumed from data, and a boolean 280 // Returns a pair with the number of bytes consumed from data, and a boolean
280 // indicating if the fin bit was consumed. This does not indicate the data 281 // indicating if the fin bit was consumed. This does not indicate the data
281 // has been sent on the wire: it may have been turned into a packet and queued 282 // has been sent on the wire: it may have been turned into a packet and queued
282 // if the socket was unexpectedly blocked. |fec_protection| indicates if 283 // if the socket was unexpectedly blocked. |fec_protection| indicates if
283 // data is to be FEC protected. Note that data that is sent immediately 284 // data is to be FEC protected. Note that data that is sent immediately
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 850
850 // True if this is a secure QUIC connection. 851 // True if this is a secure QUIC connection.
851 bool is_secure_; 852 bool is_secure_;
852 853
853 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 854 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
854 }; 855 };
855 856
856 } // namespace net 857 } // namespace net
857 858
858 #endif // NET_QUIC_QUIC_CONNECTION_H_ 859 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698