| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 bool DisableConnectionMigration() const; | 380 bool DisableConnectionMigration() const; |
| 381 | 381 |
| 382 void SetAlternateServerAddressToSend( | 382 void SetAlternateServerAddressToSend( |
| 383 const IPEndPoint& alternate_server_address); | 383 const IPEndPoint& alternate_server_address); |
| 384 | 384 |
| 385 bool HasReceivedAlternateServerAddress() const; | 385 bool HasReceivedAlternateServerAddress() const; |
| 386 | 386 |
| 387 const IPEndPoint& ReceivedAlternateServerAddress() const; | 387 const IPEndPoint& ReceivedAlternateServerAddress() const; |
| 388 | 388 |
| 389 void SetForceHolBlocking(); |
| 390 |
| 391 bool ForceHolBlocking(Perspective perspective) const; |
| 392 |
| 389 bool negotiated() const; | 393 bool negotiated() const; |
| 390 | 394 |
| 391 // ToHandshakeMessage serialises the settings in this object as a series of | 395 // ToHandshakeMessage serialises the settings in this object as a series of |
| 392 // tags /value pairs and adds them to |out|. | 396 // tags /value pairs and adds them to |out|. |
| 393 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; | 397 void ToHandshakeMessage(CryptoHandshakeMessage* out) const; |
| 394 | 398 |
| 395 // Calls ProcessPeerHello on each negotiable parameter. On failure returns | 399 // Calls ProcessPeerHello on each negotiable parameter. On failure returns |
| 396 // the corresponding QuicErrorCode and sets detailed error in |error_details|. | 400 // the corresponding QuicErrorCode and sets detailed error in |error_details|. |
| 397 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, | 401 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, |
| 398 HelloType hello_type, | 402 HelloType hello_type, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 QuicFixedUint32 socket_receive_buffer_; | 442 QuicFixedUint32 socket_receive_buffer_; |
| 439 | 443 |
| 440 // Whether to support multipath for this connection. | 444 // Whether to support multipath for this connection. |
| 441 QuicNegotiableUint32 multipath_enabled_; | 445 QuicNegotiableUint32 multipath_enabled_; |
| 442 | 446 |
| 443 // Whether tell peer not to attempt connection migration. | 447 // Whether tell peer not to attempt connection migration. |
| 444 QuicFixedUint32 connection_migration_disabled_; | 448 QuicFixedUint32 connection_migration_disabled_; |
| 445 | 449 |
| 446 // An alternate server address the client could connect to. | 450 // An alternate server address the client could connect to. |
| 447 QuicFixedIPEndPoint alternate_server_address_; | 451 QuicFixedIPEndPoint alternate_server_address_; |
| 452 |
| 453 // Force HOL blocking for measurement purposes. |
| 454 QuicFixedUint32 force_hol_blocking_; |
| 448 }; | 455 }; |
| 449 | 456 |
| 450 } // namespace net | 457 } // namespace net |
| 451 | 458 |
| 452 #endif // NET_QUIC_QUIC_CONFIG_H_ | 459 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |