Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: net/quic/quic_config.h

Issue 2104633002: Landing recent QUIC changes until 6/24/2016 14:00 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_buffered_packet_store_test.cc ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 QuicTime::Delta IdleConnectionStateLifetime() const; 283 QuicTime::Delta IdleConnectionStateLifetime() const;
284 284
285 void SetSilentClose(bool silent_close); 285 void SetSilentClose(bool silent_close);
286 286
287 bool SilentClose() const; 287 bool SilentClose() const;
288 288
289 void SetMaxStreamsPerConnection(size_t max_streams, size_t default_streams); 289 void SetMaxStreamsPerConnection(size_t max_streams, size_t default_streams);
290 290
291 uint32_t MaxStreamsPerConnection() const; 291 uint32_t MaxStreamsPerConnection() const;
292 292
293 void SetMaxIncomingDynamicStreamsToSend(
294 uint32_t max_incoming_dynamic_streams);
295
296 uint32_t GetMaxIncomingDynamicStreamsToSend();
297
298 bool HasReceivedMaxIncomingDynamicStreams();
299
300 uint32_t ReceivedMaxIncomingDynamicStreams();
301
293 void set_max_time_before_crypto_handshake( 302 void set_max_time_before_crypto_handshake(
294 QuicTime::Delta max_time_before_crypto_handshake) { 303 QuicTime::Delta max_time_before_crypto_handshake) {
295 max_time_before_crypto_handshake_ = max_time_before_crypto_handshake; 304 max_time_before_crypto_handshake_ = max_time_before_crypto_handshake;
296 } 305 }
297 306
298 QuicTime::Delta max_time_before_crypto_handshake() const { 307 QuicTime::Delta max_time_before_crypto_handshake() const {
299 return max_time_before_crypto_handshake_; 308 return max_time_before_crypto_handshake_;
300 } 309 }
301 310
302 void set_max_idle_time_before_crypto_handshake( 311 void set_max_idle_time_before_crypto_handshake(
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // Maximum number of undecryptable packets stored before CHLO/SHLO. 412 // Maximum number of undecryptable packets stored before CHLO/SHLO.
404 size_t max_undecryptable_packets_; 413 size_t max_undecryptable_packets_;
405 414
406 // Connection options. 415 // Connection options.
407 QuicFixedTagVector connection_options_; 416 QuicFixedTagVector connection_options_;
408 // Idle connection state lifetime 417 // Idle connection state lifetime
409 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_; 418 QuicNegotiableUint32 idle_connection_state_lifetime_seconds_;
410 // Whether to use silent close. Defaults to 0 (false) and is otherwise true. 419 // Whether to use silent close. Defaults to 0 (false) and is otherwise true.
411 QuicNegotiableUint32 silent_close_; 420 QuicNegotiableUint32 silent_close_;
412 // Maximum number of streams that the connection can support. 421 // Maximum number of streams that the connection can support.
422 // TODO(rjshade): Remove when removing QUIC_VERSION_34
413 QuicNegotiableUint32 max_streams_per_connection_; 423 QuicNegotiableUint32 max_streams_per_connection_;
424 // Maximum number of incoming dynamic streams that the connection can support.
425 QuicFixedUint32 max_incoming_dynamic_streams_;
414 // The number of bytes required for the connection ID. 426 // The number of bytes required for the connection ID.
415 QuicFixedUint32 bytes_for_connection_id_; 427 QuicFixedUint32 bytes_for_connection_id_;
416 // Initial round trip time estimate in microseconds. 428 // Initial round trip time estimate in microseconds.
417 QuicFixedUint32 initial_round_trip_time_us_; 429 QuicFixedUint32 initial_round_trip_time_us_;
418 430
419 // Initial stream flow control receive window in bytes. 431 // Initial stream flow control receive window in bytes.
420 QuicFixedUint32 initial_stream_flow_control_window_bytes_; 432 QuicFixedUint32 initial_stream_flow_control_window_bytes_;
421 // Initial session flow control receive window in bytes. 433 // Initial session flow control receive window in bytes.
422 QuicFixedUint32 initial_session_flow_control_window_bytes_; 434 QuicFixedUint32 initial_session_flow_control_window_bytes_;
423 435
424 // Socket receive buffer in bytes. 436 // Socket receive buffer in bytes.
425 // TODO(ianswett): Deprecate once QUIC_VERSION_34 is deprecated. 437 // TODO(ianswett): Deprecate once QUIC_VERSION_34 is deprecated.
426 QuicFixedUint32 socket_receive_buffer_; 438 QuicFixedUint32 socket_receive_buffer_;
427 439
428 // Whether to support multipath for this connection. 440 // Whether to support multipath for this connection.
429 QuicNegotiableUint32 multipath_enabled_; 441 QuicNegotiableUint32 multipath_enabled_;
430 442
431 // Whether tell peer not to attempt connection migration. 443 // Whether tell peer not to attempt connection migration.
432 QuicFixedUint32 connection_migration_disabled_; 444 QuicFixedUint32 connection_migration_disabled_;
433 445
434 // An alternate server address the client could connect to. 446 // An alternate server address the client could connect to.
435 QuicFixedIPEndPoint alternate_server_address_; 447 QuicFixedIPEndPoint alternate_server_address_;
436 }; 448 };
437 449
438 } // namespace net 450 } // namespace net
439 451
440 #endif // NET_QUIC_QUIC_CONFIG_H_ 452 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/quic_buffered_packet_store_test.cc ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698