OLD | NEW |
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 bool HasSetBytesForConnectionIdToSend() const; | 313 bool HasSetBytesForConnectionIdToSend() const; |
314 | 314 |
315 // Sets the peer's connection id length, in bytes. | 315 // Sets the peer's connection id length, in bytes. |
316 void SetBytesForConnectionIdToSend(uint32 bytes); | 316 void SetBytesForConnectionIdToSend(uint32 bytes); |
317 | 317 |
318 bool HasReceivedBytesForConnectionId() const; | 318 bool HasReceivedBytesForConnectionId() const; |
319 | 319 |
320 uint32 ReceivedBytesForConnectionId() const; | 320 uint32 ReceivedBytesForConnectionId() const; |
321 | 321 |
322 // Sets the peer's default initial congestion window in packets. | |
323 void SetInitialCongestionWindowToSend(size_t initial_window); | |
324 | |
325 bool HasReceivedInitialCongestionWindow() const; | |
326 | |
327 uint32 ReceivedInitialCongestionWindow() const; | |
328 | |
329 // Sets an estimated initial round trip time in us. | 322 // Sets an estimated initial round trip time in us. |
330 void SetInitialRoundTripTimeUsToSend(size_t rtt_us); | 323 void SetInitialRoundTripTimeUsToSend(size_t rtt_us); |
331 | 324 |
332 bool HasReceivedInitialRoundTripTimeUs() const; | 325 bool HasReceivedInitialRoundTripTimeUs() const; |
333 | 326 |
334 uint32 ReceivedInitialRoundTripTimeUs() const; | 327 uint32 ReceivedInitialRoundTripTimeUs() const; |
335 | 328 |
336 bool HasInitialRoundTripTimeUsToSend() const; | 329 bool HasInitialRoundTripTimeUsToSend() const; |
337 | 330 |
338 uint32 GetInitialRoundTripTimeUsToSend() const; | 331 uint32 GetInitialRoundTripTimeUsToSend() const; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // Connection options. | 399 // Connection options. |
407 QuicFixedTagVector connection_options_; | 400 QuicFixedTagVector connection_options_; |
408 // Idle connection state lifetime | 401 // Idle connection state lifetime |
409 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; | 402 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; |
410 // Keepalive timeout, or 0 to turn off keepalive probes | 403 // Keepalive timeout, or 0 to turn off keepalive probes |
411 QuicNegotiableUint32 keepalive_timeout_seconds_; | 404 QuicNegotiableUint32 keepalive_timeout_seconds_; |
412 // Maximum number of streams that the connection can support. | 405 // Maximum number of streams that the connection can support. |
413 QuicNegotiableUint32 max_streams_per_connection_; | 406 QuicNegotiableUint32 max_streams_per_connection_; |
414 // The number of bytes required for the connection ID. | 407 // The number of bytes required for the connection ID. |
415 QuicFixedUint32 bytes_for_connection_id_; | 408 QuicFixedUint32 bytes_for_connection_id_; |
416 // Initial congestion window in packets. | |
417 QuicFixedUint32 initial_congestion_window_; | |
418 // Initial round trip time estimate in microseconds. | 409 // Initial round trip time estimate in microseconds. |
419 QuicFixedUint32 initial_round_trip_time_us_; | 410 QuicFixedUint32 initial_round_trip_time_us_; |
420 | 411 |
421 // TODO(rjshade): Remove when removing QUIC_VERSION_19. | 412 // TODO(rjshade): Remove when removing QUIC_VERSION_19. |
422 // Initial flow control receive window in bytes. | 413 // Initial flow control receive window in bytes. |
423 QuicFixedUint32 initial_flow_control_window_bytes_; | 414 QuicFixedUint32 initial_flow_control_window_bytes_; |
424 | 415 |
425 // Initial stream flow control receive window in bytes. | 416 // Initial stream flow control receive window in bytes. |
426 QuicFixedUint32 initial_stream_flow_control_window_bytes_; | 417 QuicFixedUint32 initial_stream_flow_control_window_bytes_; |
427 // Initial session flow control receive window in bytes. | 418 // Initial session flow control receive window in bytes. |
428 QuicFixedUint32 initial_session_flow_control_window_bytes_; | 419 QuicFixedUint32 initial_session_flow_control_window_bytes_; |
429 | 420 |
430 // Socket receive buffer in bytes. | 421 // Socket receive buffer in bytes. |
431 QuicFixedUint32 socket_receive_buffer_; | 422 QuicFixedUint32 socket_receive_buffer_; |
432 }; | 423 }; |
433 | 424 |
434 } // namespace net | 425 } // namespace net |
435 | 426 |
436 #endif // NET_QUIC_QUIC_CONFIG_H_ | 427 #endif // NET_QUIC_QUIC_CONFIG_H_ |
OLD | NEW |