Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: net/quic/quic_config.cc

Issue 573763003: client-only - Change QUIC clients to use the initial RTT estimate that (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Increase_flow_control_receive_window_75381087
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698