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

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

Issue 471613002: Change how QUIC negotiates pacing from congestion feedback to QUIC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_max_bandwidth_max_bandwidth_timestamp_73055131
Patch Set: Created 6 years, 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CONFIG_H_ 5 #ifndef NET_QUIC_QUIC_CONFIG_H_
6 #define NET_QUIC_QUIC_CONFIG_H_ 6 #define NET_QUIC_QUIC_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 bool HasReceivedSocketReceiveBuffer() const; 348 bool HasReceivedSocketReceiveBuffer() const;
349 349
350 uint32 ReceivedSocketReceiveBuffer() const; 350 uint32 ReceivedSocketReceiveBuffer() const;
351 351
352 bool negotiated(); 352 bool negotiated();
353 353
354 // SetDefaults sets the members to sensible, default values. 354 // SetDefaults sets the members to sensible, default values.
355 void SetDefaults(); 355 void SetDefaults();
356 356
357 // Enabled pacing.
358 void EnablePacing(bool enable_pacing);
359
360 // ToHandshakeMessage serialises the settings in this object as a series of 357 // ToHandshakeMessage serialises the settings in this object as a series of
361 // tags /value pairs and adds them to |out|. 358 // tags /value pairs and adds them to |out|.
362 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; 359 void ToHandshakeMessage(CryptoHandshakeMessage* out) const;
363 360
364 // Calls ProcessPeerHello on each negotiable parameter. On failure returns 361 // Calls ProcessPeerHello on each negotiable parameter. On failure returns
365 // the corresponding QuicErrorCode and sets detailed error in |error_details|. 362 // the corresponding QuicErrorCode and sets detailed error in |error_details|.
366 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, 363 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello,
367 HelloType hello_type, 364 HelloType hello_type,
368 std::string* error_details); 365 std::string* error_details);
369 366
(...skipping 29 matching lines...) Expand all
399 // Initial session flow control receive window in bytes. 396 // Initial session flow control receive window in bytes.
400 QuicFixedUint32 initial_session_flow_control_window_bytes_; 397 QuicFixedUint32 initial_session_flow_control_window_bytes_;
401 398
402 // Socket receive buffer in bytes. 399 // Socket receive buffer in bytes.
403 QuicFixedUint32 socket_receive_buffer_; 400 QuicFixedUint32 socket_receive_buffer_;
404 }; 401 };
405 402
406 } // namespace net 403 } // namespace net
407 404
408 #endif // NET_QUIC_QUIC_CONFIG_H_ 405 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698