diff options
Diffstat (limited to 'chromium/net/quic/quic_config.h')
-rw-r--r-- | chromium/net/quic/quic_config.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/chromium/net/quic/quic_config.h b/chromium/net/quic/quic_config.h index c07f332ac6f..6c0561b1ca4 100644 --- a/chromium/net/quic/quic_config.h +++ b/chromium/net/quic/quic_config.h @@ -9,7 +9,6 @@ #include "base/basictypes.h" #include "net/quic/crypto/crypto_handshake.h" -#include "net/quic/crypto/crypto_utils.h" #include "net/quic/quic_protocol.h" #include "net/quic/quic_time.h" #include "net/quic/quic_utils.h" @@ -41,6 +40,7 @@ class NET_EXPORT_PRIVATE QuicNegotiableValue { class NET_EXPORT_PRIVATE QuicNegotiableUint32 : public QuicNegotiableValue { public: + // Default and max values default to 0. QuicNegotiableUint32(QuicTag name, Presence presence); // Sets the maximum possible value that can be achieved after negotiation and @@ -159,6 +159,18 @@ class NET_EXPORT_PRIVATE QuicConfig { QuicTime::Delta max_time_before_crypto_handshake() const; + // Sets the server's TCP sender's max and default initial congestion window + // in packets. + void set_server_initial_congestion_window(size_t max_initial_window, + size_t default_initial_window); + + uint32 server_initial_congestion_window() const; + + // Sets an estimated initial round trip time in us. + void set_initial_round_trip_time_us(size_t max_rtt, size_t default_rtt); + + uint32 initial_round_trip_time_us() const; + bool negotiated(); // SetDefaults sets the members to sensible, default values. @@ -190,6 +202,10 @@ class NET_EXPORT_PRIVATE QuicConfig { // Maximum time till the session can be alive before crypto handshake is // finished. (Not negotiated). QuicTime::Delta max_time_before_crypto_handshake_; + // Initial congestion window in packets. + QuicNegotiableUint32 server_initial_congestion_window_; + // Initial round trip time estimate in microseconds. + QuicNegotiableUint32 initial_round_trip_time_us_; }; } // namespace net |