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

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

Issue 446283002: Include the socket receive buffer in the connection handshake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@improve_SendAlgorithmSimulator_72332690
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 // Sets an initial session flow control window size to transmit to the peer. 334 // Sets an initial session flow control window size to transmit to the peer.
335 void SetInitialSessionFlowControlWindowToSend(uint32 window_bytes); 335 void SetInitialSessionFlowControlWindowToSend(uint32 window_bytes);
336 336
337 uint32 GetInitialSessionFlowControlWindowToSend() const; 337 uint32 GetInitialSessionFlowControlWindowToSend() const;
338 338
339 bool HasReceivedInitialSessionFlowControlWindowBytes() const; 339 bool HasReceivedInitialSessionFlowControlWindowBytes() const;
340 340
341 uint32 ReceivedInitialSessionFlowControlWindowBytes() const; 341 uint32 ReceivedInitialSessionFlowControlWindowBytes() const;
342 342
343 // Sets socket receive buffer to transmit to the peer.
344 void SetSocketReceiveBufferToSend(uint32 window_bytes);
345
346 uint32 GetSocketReceiveBufferToSend() const;
347
348 bool HasReceivedSocketReceiveBuffer() const;
349
350 uint32 ReceivedSocketReceiveBuffer() const;
351
343 bool negotiated(); 352 bool negotiated();
344 353
345 // SetDefaults sets the members to sensible, default values. 354 // SetDefaults sets the members to sensible, default values.
346 void SetDefaults(); 355 void SetDefaults();
347 356
348 // Enabled pacing. 357 // Enabled pacing.
349 void EnablePacing(bool enable_pacing); 358 void EnablePacing(bool enable_pacing);
350 359
351 // ToHandshakeMessage serialises the settings in this object as a series of 360 // ToHandshakeMessage serialises the settings in this object as a series of
352 // tags /value pairs and adds them to |out|. 361 // tags /value pairs and adds them to |out|.
(...skipping 29 matching lines...) Expand all
382 QuicFixedUint32 initial_round_trip_time_us_; 391 QuicFixedUint32 initial_round_trip_time_us_;
383 392
384 // TODO(rjshade): Remove when removing QUIC_VERSION_19. 393 // TODO(rjshade): Remove when removing QUIC_VERSION_19.
385 // Initial flow control receive window in bytes. 394 // Initial flow control receive window in bytes.
386 QuicFixedUint32 initial_flow_control_window_bytes_; 395 QuicFixedUint32 initial_flow_control_window_bytes_;
387 396
388 // Initial stream flow control receive window in bytes. 397 // Initial stream flow control receive window in bytes.
389 QuicFixedUint32 initial_stream_flow_control_window_bytes_; 398 QuicFixedUint32 initial_stream_flow_control_window_bytes_;
390 // Initial session flow control receive window in bytes. 399 // Initial session flow control receive window in bytes.
391 QuicFixedUint32 initial_session_flow_control_window_bytes_; 400 QuicFixedUint32 initial_session_flow_control_window_bytes_;
401
402 // Socket receive buffer in bytes.
403 QuicFixedUint32 socket_receive_buffer_;
392 }; 404 };
393 405
394 } // namespace net 406 } // namespace net
395 407
396 #endif // NET_QUIC_QUIC_CONFIG_H_ 408 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698