| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 void SetSocketReceiveBufferToSend(uint32_t window_bytes); | 328 void SetSocketReceiveBufferToSend(uint32_t window_bytes); |
| 329 | 329 |
| 330 bool HasReceivedSocketReceiveBuffer() const; | 330 bool HasReceivedSocketReceiveBuffer() const; |
| 331 | 331 |
| 332 uint32_t ReceivedSocketReceiveBuffer() const; | 332 uint32_t ReceivedSocketReceiveBuffer() const; |
| 333 | 333 |
| 334 void SetMultipathEnabled(bool multipath_enabled); | 334 void SetMultipathEnabled(bool multipath_enabled); |
| 335 | 335 |
| 336 bool MultipathEnabled() const; | 336 bool MultipathEnabled() const; |
| 337 | 337 |
| 338 void SetDisableConnectionMigration(); |
| 339 |
| 340 bool DisableConnectionMigration() const; |
| 341 |
| 338 bool negotiated() const; | 342 bool negotiated() const; |
| 339 | 343 |
| 340 // ToHandshakeMessage serialises the settings in this object as a series of | 344 // ToHandshakeMessage serialises the settings in this object as a series of |
| 341 // tags /value pairs and adds them to |out|. | 345 // tags /value pairs and adds them to |out|. |
| 342 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; | 346 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; |
| 343 | 347 |
| 344 // Calls ProcessPeerHello on each negotiable parameter. On failure returns | 348 // Calls ProcessPeerHello on each negotiable parameter. On failure returns |
| 345 // the corresponding QuicErrorCode and sets detailed error in |error_details|. | 349 // the corresponding QuicErrorCode and sets detailed error in |error_details|. |
| 346 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, | 350 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, |
| 347 HelloType hello_type, | 351 HelloType hello_type, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 377 // Initial stream flow control receive window in bytes. | 381 // Initial stream flow control receive window in bytes. |
| 378 QuicFixedUint32 initial_stream_flow_control_window_bytes_; | 382 QuicFixedUint32 initial_stream_flow_control_window_bytes_; |
| 379 // Initial session flow control receive window in bytes. | 383 // Initial session flow control receive window in bytes. |
| 380 QuicFixedUint32 initial_session_flow_control_window_bytes_; | 384 QuicFixedUint32 initial_session_flow_control_window_bytes_; |
| 381 | 385 |
| 382 // Socket receive buffer in bytes. | 386 // Socket receive buffer in bytes. |
| 383 QuicFixedUint32 socket_receive_buffer_; | 387 QuicFixedUint32 socket_receive_buffer_; |
| 384 | 388 |
| 385 // Whether to support multipath for this connection. | 389 // Whether to support multipath for this connection. |
| 386 QuicNegotiableUint32 multipath_enabled_; | 390 QuicNegotiableUint32 multipath_enabled_; |
| 391 |
| 392 // Whether tell peer not to attempt connection migration. |
| 393 QuicFixedUint32 connection_migration_disabled_; |
| 387 }; | 394 }; |
| 388 | 395 |
| 389 } // namespace net | 396 } // namespace net |
| 390 | 397 |
| 391 #endif // NET_QUIC_QUIC_CONFIG_H_ | 398 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |