| 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 #include "net/quic/quic_config.h" | 5 #include "net/quic/quic_config.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "net/quic/crypto/crypto_handshake_message.h" | 10 #include "net/quic/crypto/crypto_handshake_message.h" |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 501 |
| 502 void QuicConfig::SetMaxStreamsPerConnection(size_t max_streams, | 502 void QuicConfig::SetMaxStreamsPerConnection(size_t max_streams, |
| 503 size_t default_streams) { | 503 size_t default_streams) { |
| 504 max_streams_per_connection_.set(max_streams, default_streams); | 504 max_streams_per_connection_.set(max_streams, default_streams); |
| 505 } | 505 } |
| 506 | 506 |
| 507 uint32 QuicConfig::MaxStreamsPerConnection() const { | 507 uint32 QuicConfig::MaxStreamsPerConnection() const { |
| 508 return max_streams_per_connection_.GetUint32(); | 508 return max_streams_per_connection_.GetUint32(); |
| 509 } | 509 } |
| 510 | 510 |
| 511 bool QuicConfig::HasSetBytesForConnectionIdToSend() const { |
| 512 return bytes_for_connection_id_.HasSendValue(); |
| 513 } |
| 514 |
| 511 void QuicConfig::SetBytesForConnectionIdToSend(uint32 bytes) { | 515 void QuicConfig::SetBytesForConnectionIdToSend(uint32 bytes) { |
| 512 bytes_for_connection_id_.SetSendValue(bytes); | 516 bytes_for_connection_id_.SetSendValue(bytes); |
| 513 } | 517 } |
| 514 | 518 |
| 515 bool QuicConfig::HasReceivedBytesForConnectionId() const { | 519 bool QuicConfig::HasReceivedBytesForConnectionId() const { |
| 516 return bytes_for_connection_id_.HasReceivedValue(); | 520 return bytes_for_connection_id_.HasReceivedValue(); |
| 517 } | 521 } |
| 518 | 522 |
| 519 uint32 QuicConfig::ReceivedBytesForConnectionId() const { | 523 uint32 QuicConfig::ReceivedBytesForConnectionId() const { |
| 520 return bytes_for_connection_id_.GetReceivedValue(); | 524 return bytes_for_connection_id_.GetReceivedValue(); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 peer_hello, hello_type, error_details); | 736 peer_hello, hello_type, error_details); |
| 733 } | 737 } |
| 734 if (error == QUIC_NO_ERROR) { | 738 if (error == QUIC_NO_ERROR) { |
| 735 error = connection_options_.ProcessPeerHello( | 739 error = connection_options_.ProcessPeerHello( |
| 736 peer_hello, hello_type, error_details); | 740 peer_hello, hello_type, error_details); |
| 737 } | 741 } |
| 738 return error; | 742 return error; |
| 739 } | 743 } |
| 740 | 744 |
| 741 } // namespace net | 745 } // namespace net |
| OLD | NEW |