| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 QuicTag default_congestion_feedback); | 262 QuicTag default_congestion_feedback); |
| 263 | 263 |
| 264 QuicTag congestion_feedback() const; | 264 QuicTag congestion_feedback() const; |
| 265 | 265 |
| 266 void SetConnectionOptionsToSend(const QuicTagVector& connection_options); | 266 void SetConnectionOptionsToSend(const QuicTagVector& connection_options); |
| 267 | 267 |
| 268 bool HasReceivedConnectionOptions() const; | 268 bool HasReceivedConnectionOptions() const; |
| 269 | 269 |
| 270 QuicTagVector ReceivedConnectionOptions() const; | 270 QuicTagVector ReceivedConnectionOptions() const; |
| 271 | 271 |
| 272 bool HasSendConnectionOptions() const; |
| 273 |
| 274 QuicTagVector SendConnectionOptions() const; |
| 275 |
| 272 void SetLossDetectionToSend(QuicTag loss_detection); | 276 void SetLossDetectionToSend(QuicTag loss_detection); |
| 273 | 277 |
| 274 bool HasReceivedLossDetection() const; | 278 bool HasReceivedLossDetection() const; |
| 275 | 279 |
| 276 QuicTag ReceivedLossDetection() const; | 280 QuicTag ReceivedLossDetection() const; |
| 277 | 281 |
| 278 void set_idle_connection_state_lifetime( | 282 void set_idle_connection_state_lifetime( |
| 279 QuicTime::Delta max_idle_connection_state_lifetime, | 283 QuicTime::Delta max_idle_connection_state_lifetime, |
| 280 QuicTime::Delta default_idle_conection_state_lifetime); | 284 QuicTime::Delta default_idle_conection_state_lifetime); |
| 281 | 285 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // the corresponding QuicErrorCode and sets detailed error in |error_details|. | 356 // the corresponding QuicErrorCode and sets detailed error in |error_details|. |
| 353 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, | 357 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, |
| 354 HelloType hello_type, | 358 HelloType hello_type, |
| 355 std::string* error_details); | 359 std::string* error_details); |
| 356 | 360 |
| 357 private: | 361 private: |
| 358 friend class test::QuicConfigPeer; | 362 friend class test::QuicConfigPeer; |
| 359 | 363 |
| 360 // Congestion control feedback type. | 364 // Congestion control feedback type. |
| 361 QuicNegotiableTag congestion_feedback_; | 365 QuicNegotiableTag congestion_feedback_; |
| 362 // Congestion control option. | 366 // Connection options. |
| 363 QuicFixedTagVector connection_options_; | 367 QuicFixedTagVector connection_options_; |
| 364 // Loss detection feedback type. | 368 // Loss detection feedback type. |
| 365 QuicFixedTag loss_detection_; | 369 QuicFixedTag loss_detection_; |
| 366 // Idle connection state lifetime | 370 // Idle connection state lifetime |
| 367 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; | 371 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; |
| 368 // Keepalive timeout, or 0 to turn off keepalive probes | 372 // Keepalive timeout, or 0 to turn off keepalive probes |
| 369 QuicNegotiableUint32 keepalive_timeout_seconds_; | 373 QuicNegotiableUint32 keepalive_timeout_seconds_; |
| 370 // Maximum number of streams that the connection can support. | 374 // Maximum number of streams that the connection can support. |
| 371 QuicNegotiableUint32 max_streams_per_connection_; | 375 QuicNegotiableUint32 max_streams_per_connection_; |
| 372 // Maximum time till the session can be alive before crypto handshake is | 376 // Maximum time till the session can be alive before crypto handshake is |
| (...skipping 10 matching lines...) Expand all Loading... |
| 383 | 387 |
| 384 // Initial stream flow control receive window in bytes. | 388 // Initial stream flow control receive window in bytes. |
| 385 QuicFixedUint32 initial_stream_flow_control_window_bytes_; | 389 QuicFixedUint32 initial_stream_flow_control_window_bytes_; |
| 386 // Initial session flow control receive window in bytes. | 390 // Initial session flow control receive window in bytes. |
| 387 QuicFixedUint32 initial_session_flow_control_window_bytes_; | 391 QuicFixedUint32 initial_session_flow_control_window_bytes_; |
| 388 }; | 392 }; |
| 389 | 393 |
| 390 } // namespace net | 394 } // namespace net |
| 391 | 395 |
| 392 #endif // NET_QUIC_QUIC_CONFIG_H_ | 396 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |