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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 } | 545 } |
546 | 546 |
547 bool QuicConfig::HasReceivedInitialRoundTripTimeUs() const { | 547 bool QuicConfig::HasReceivedInitialRoundTripTimeUs() const { |
548 return initial_round_trip_time_us_.HasReceivedValue(); | 548 return initial_round_trip_time_us_.HasReceivedValue(); |
549 } | 549 } |
550 | 550 |
551 uint32 QuicConfig::ReceivedInitialRoundTripTimeUs() const { | 551 uint32 QuicConfig::ReceivedInitialRoundTripTimeUs() const { |
552 return initial_round_trip_time_us_.GetReceivedValue(); | 552 return initial_round_trip_time_us_.GetReceivedValue(); |
553 } | 553 } |
554 | 554 |
| 555 bool QuicConfig::HasInitialRoundTripTimeUsToSend() const { |
| 556 return initial_round_trip_time_us_.HasSendValue(); |
| 557 } |
| 558 |
| 559 uint32 QuicConfig::GetInitialRoundTripTimeUsToSend() const { |
| 560 return initial_round_trip_time_us_.GetSendValue(); |
| 561 } |
| 562 |
555 void QuicConfig::SetInitialFlowControlWindowToSend(uint32 window_bytes) { | 563 void QuicConfig::SetInitialFlowControlWindowToSend(uint32 window_bytes) { |
556 if (window_bytes < kDefaultFlowControlSendWindow) { | 564 if (window_bytes < kDefaultFlowControlSendWindow) { |
557 LOG(DFATAL) << "Initial flow control receive window (" << window_bytes | 565 LOG(DFATAL) << "Initial flow control receive window (" << window_bytes |
558 << ") cannot be set lower than default (" | 566 << ") cannot be set lower than default (" |
559 << kDefaultFlowControlSendWindow << ")."; | 567 << kDefaultFlowControlSendWindow << ")."; |
560 window_bytes = kDefaultFlowControlSendWindow; | 568 window_bytes = kDefaultFlowControlSendWindow; |
561 } | 569 } |
562 initial_flow_control_window_bytes_.SetSendValue(window_bytes); | 570 initial_flow_control_window_bytes_.SetSendValue(window_bytes); |
563 } | 571 } |
564 | 572 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 peer_hello, hello_type, error_details); | 737 peer_hello, hello_type, error_details); |
730 } | 738 } |
731 if (error == QUIC_NO_ERROR) { | 739 if (error == QUIC_NO_ERROR) { |
732 error = connection_options_.ProcessPeerHello( | 740 error = connection_options_.ProcessPeerHello( |
733 peer_hello, hello_type, error_details); | 741 peer_hello, hello_type, error_details); |
734 } | 742 } |
735 return error; | 743 return error; |
736 } | 744 } |
737 | 745 |
738 } // namespace net | 746 } // namespace net |
OLD | NEW |