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 } | 303 } |
304 | 304 |
305 void set_max_undecryptable_packets(size_t max_undecryptable_packets) { | 305 void set_max_undecryptable_packets(size_t max_undecryptable_packets) { |
306 max_undecryptable_packets_ = max_undecryptable_packets; | 306 max_undecryptable_packets_ = max_undecryptable_packets; |
307 } | 307 } |
308 | 308 |
309 size_t max_undecryptable_packets() const { | 309 size_t max_undecryptable_packets() const { |
310 return max_undecryptable_packets_; | 310 return max_undecryptable_packets_; |
311 } | 311 } |
312 | 312 |
| 313 bool HasSetBytesForConnectionIdToSend() const; |
| 314 |
313 // Sets the peer's connection id length, in bytes. | 315 // Sets the peer's connection id length, in bytes. |
314 void SetBytesForConnectionIdToSend(uint32 bytes); | 316 void SetBytesForConnectionIdToSend(uint32 bytes); |
315 | 317 |
316 bool HasReceivedBytesForConnectionId() const; | 318 bool HasReceivedBytesForConnectionId() const; |
317 | 319 |
318 uint32 ReceivedBytesForConnectionId() const; | 320 uint32 ReceivedBytesForConnectionId() const; |
319 | 321 |
320 // Sets the peer's default initial congestion window in packets. | 322 // Sets the peer's default initial congestion window in packets. |
321 void SetInitialCongestionWindowToSend(size_t initial_window); | 323 void SetInitialCongestionWindowToSend(size_t initial_window); |
322 | 324 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // Initial session flow control receive window in bytes. | 427 // Initial session flow control receive window in bytes. |
426 QuicFixedUint32 initial_session_flow_control_window_bytes_; | 428 QuicFixedUint32 initial_session_flow_control_window_bytes_; |
427 | 429 |
428 // Socket receive buffer in bytes. | 430 // Socket receive buffer in bytes. |
429 QuicFixedUint32 socket_receive_buffer_; | 431 QuicFixedUint32 socket_receive_buffer_; |
430 }; | 432 }; |
431 | 433 |
432 } // namespace net | 434 } // namespace net |
433 | 435 |
434 #endif // NET_QUIC_QUIC_CONFIG_H_ | 436 #endif // NET_QUIC_QUIC_CONFIG_H_ |
OLD | NEW |