| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Sets an estimated initial round trip time in us. | 303 // Sets an estimated initial round trip time in us. |
| 304 void SetInitialRoundTripTimeUsToSend(size_t rtt_us); | 304 void SetInitialRoundTripTimeUsToSend(size_t rtt_us); |
| 305 | 305 |
| 306 bool HasReceivedInitialRoundTripTimeUs() const; | 306 bool HasReceivedInitialRoundTripTimeUs() const; |
| 307 | 307 |
| 308 uint32 ReceivedInitialRoundTripTimeUs() const; | 308 uint32 ReceivedInitialRoundTripTimeUs() const; |
| 309 | 309 |
| 310 // Sets an initial flow control window size to transmit to the peer. | 310 // Sets an initial flow control window size to transmit to the peer. |
| 311 void SetInitialFlowControlWindowToSend(uint32 window_bytes); | 311 void SetInitialFlowControlWindowToSend(uint32 window_bytes); |
| 312 | 312 |
| 313 uint32 GetInitialFlowControlWindowToSend() const; |
| 314 |
| 313 bool HasReceivedInitialFlowControlWindowBytes() const; | 315 bool HasReceivedInitialFlowControlWindowBytes() const; |
| 314 | 316 |
| 315 uint32 ReceivedInitialFlowControlWindowBytes() const; | 317 uint32 ReceivedInitialFlowControlWindowBytes() const; |
| 316 | 318 |
| 317 bool negotiated(); | 319 bool negotiated(); |
| 318 | 320 |
| 319 // SetDefaults sets the members to sensible, default values. | 321 // SetDefaults sets the members to sensible, default values. |
| 320 void SetDefaults(); | 322 void SetDefaults(); |
| 321 | 323 |
| 322 // Enabled pacing. | 324 // Enabled pacing. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 QuicFixedUint32 initial_congestion_window_; | 356 QuicFixedUint32 initial_congestion_window_; |
| 355 // Initial round trip time estimate in microseconds. | 357 // Initial round trip time estimate in microseconds. |
| 356 QuicFixedUint32 initial_round_trip_time_us_; | 358 QuicFixedUint32 initial_round_trip_time_us_; |
| 357 // Initial flow control receive window in bytes. | 359 // Initial flow control receive window in bytes. |
| 358 QuicFixedUint32 initial_flow_control_window_bytes_; | 360 QuicFixedUint32 initial_flow_control_window_bytes_; |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace net | 363 } // namespace net |
| 362 | 364 |
| 363 #endif // NET_QUIC_QUIC_CONFIG_H_ | 365 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |