| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 void SetSocketReceiveBufferToSend(uint32 window_bytes); | 363 void SetSocketReceiveBufferToSend(uint32 window_bytes); |
| 364 | 364 |
| 365 uint32 GetSocketReceiveBufferToSend() const; | 365 uint32 GetSocketReceiveBufferToSend() const; |
| 366 | 366 |
| 367 bool HasReceivedSocketReceiveBuffer() const; | 367 bool HasReceivedSocketReceiveBuffer() const; |
| 368 | 368 |
| 369 uint32 ReceivedSocketReceiveBuffer() const; | 369 uint32 ReceivedSocketReceiveBuffer() const; |
| 370 | 370 |
| 371 bool negotiated() const; | 371 bool negotiated() const; |
| 372 | 372 |
| 373 // SetDefaults sets the members to sensible, default values. | |
| 374 void SetDefaults(); | |
| 375 | |
| 376 // ToHandshakeMessage serialises the settings in this object as a series of | 373 // ToHandshakeMessage serialises the settings in this object as a series of |
| 377 // tags /value pairs and adds them to |out|. | 374 // tags /value pairs and adds them to |out|. |
| 378 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; | 375 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; |
| 379 | 376 |
| 380 // Calls ProcessPeerHello on each negotiable parameter. On failure returns | 377 // Calls ProcessPeerHello on each negotiable parameter. On failure returns |
| 381 // the corresponding QuicErrorCode and sets detailed error in |error_details|. | 378 // the corresponding QuicErrorCode and sets detailed error in |error_details|. |
| 382 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, | 379 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, |
| 383 HelloType hello_type, | 380 HelloType hello_type, |
| 384 std::string* error_details); | 381 std::string* error_details); |
| 385 | 382 |
| 386 private: | 383 private: |
| 387 friend class test::QuicConfigPeer; | 384 friend class test::QuicConfigPeer; |
| 388 | 385 |
| 386 // SetDefaults sets the members to sensible, default values. |
| 387 void SetDefaults(); |
| 388 |
| 389 // Configurations options that are not negotiated. | 389 // Configurations options that are not negotiated. |
| 390 // Maximum time the session can be alive before crypto handshake is finished. | 390 // Maximum time the session can be alive before crypto handshake is finished. |
| 391 QuicTime::Delta max_time_before_crypto_handshake_; | 391 QuicTime::Delta max_time_before_crypto_handshake_; |
| 392 // Maximum idle time before the crypto handshake has completed. | 392 // Maximum idle time before the crypto handshake has completed. |
| 393 QuicTime::Delta max_idle_time_before_crypto_handshake_; | 393 QuicTime::Delta max_idle_time_before_crypto_handshake_; |
| 394 // Maximum number of undecryptable packets stored before CHLO/SHLO. | 394 // Maximum number of undecryptable packets stored before CHLO/SHLO. |
| 395 size_t max_undecryptable_packets_; | 395 size_t max_undecryptable_packets_; |
| 396 | 396 |
| 397 // Congestion control feedback type. | 397 // Congestion control feedback type. |
| 398 QuicNegotiableTag congestion_feedback_; | 398 QuicNegotiableTag congestion_feedback_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 418 // Initial session flow control receive window in bytes. | 418 // Initial session flow control receive window in bytes. |
| 419 QuicFixedUint32 initial_session_flow_control_window_bytes_; | 419 QuicFixedUint32 initial_session_flow_control_window_bytes_; |
| 420 | 420 |
| 421 // Socket receive buffer in bytes. | 421 // Socket receive buffer in bytes. |
| 422 QuicFixedUint32 socket_receive_buffer_; | 422 QuicFixedUint32 socket_receive_buffer_; |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 } // namespace net | 425 } // namespace net |
| 426 | 426 |
| 427 #endif // NET_QUIC_QUIC_CONFIG_H_ | 427 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |