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

Unified Diff: net/quic/quic_config.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_config_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_config.cc
diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
index 82d05f3baa4ffc7b304d3a828bd4f77522c1dda6..e83b8b84cc45a59be9b432a2e13e41950a482af6 100644
--- a/net/quic/quic_config.cc
+++ b/net/quic/quic_config.cc
@@ -435,13 +435,7 @@ QuicConfig::QuicConfig()
max_streams_per_connection_(kMSPC, PRESENCE_REQUIRED),
bytes_for_connection_id_(kTCID, PRESENCE_OPTIONAL),
initial_round_trip_time_us_(kIRTT, PRESENCE_OPTIONAL),
- // TODO(rjshade): Remove this when retiring QUIC_VERSION_19.
- initial_flow_control_window_bytes_(kIFCW, PRESENCE_OPTIONAL),
- // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring
- // QUIC_VERSION_19.
initial_stream_flow_control_window_bytes_(kSFCW, PRESENCE_OPTIONAL),
- // TODO(rjshade): Make this PRESENCE_REQUIRED when retiring
- // QUIC_VERSION_19.
initial_session_flow_control_window_bytes_(kCFCW, PRESENCE_OPTIONAL),
socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL) {
SetDefaults();
@@ -546,28 +540,6 @@ uint32 QuicConfig::GetInitialRoundTripTimeUsToSend() const {
return initial_round_trip_time_us_.GetSendValue();
}
-void QuicConfig::SetInitialFlowControlWindowToSend(uint32 window_bytes) {
- if (window_bytes < kMinimumFlowControlSendWindow) {
- LOG(DFATAL) << "Initial flow control receive window (" << window_bytes
- << ") cannot be set lower than default ("
- << kMinimumFlowControlSendWindow << ").";
- window_bytes = kMinimumFlowControlSendWindow;
- }
- initial_flow_control_window_bytes_.SetSendValue(window_bytes);
-}
-
-uint32 QuicConfig::GetInitialFlowControlWindowToSend() const {
- return initial_flow_control_window_bytes_.GetSendValue();
-}
-
-bool QuicConfig::HasReceivedInitialFlowControlWindowBytes() const {
- return initial_flow_control_window_bytes_.HasReceivedValue();
-}
-
-uint32 QuicConfig::ReceivedInitialFlowControlWindowBytes() const {
- return initial_flow_control_window_bytes_.GetReceivedValue();
-}
-
void QuicConfig::SetInitialStreamFlowControlWindowToSend(uint32 window_bytes) {
if (window_bytes < kMinimumFlowControlSendWindow) {
LOG(DFATAL) << "Initial stream flow control receive window ("
@@ -656,7 +628,6 @@ void QuicConfig::SetDefaults() {
QuicTime::Delta::FromSeconds(kInitialIdleTimeoutSecs);
max_undecryptable_packets_ = kDefaultMaxUndecryptablePackets;
- SetInitialFlowControlWindowToSend(kMinimumFlowControlSendWindow);
SetInitialStreamFlowControlWindowToSend(kMinimumFlowControlSendWindow);
SetInitialSessionFlowControlWindowToSend(kMinimumFlowControlSendWindow);
}
@@ -668,7 +639,6 @@ void QuicConfig::ToHandshakeMessage(CryptoHandshakeMessage* out) const {
max_streams_per_connection_.ToHandshakeMessage(out);
bytes_for_connection_id_.ToHandshakeMessage(out);
initial_round_trip_time_us_.ToHandshakeMessage(out);
- initial_flow_control_window_bytes_.ToHandshakeMessage(out);
initial_stream_flow_control_window_bytes_.ToHandshakeMessage(out);
initial_session_flow_control_window_bytes_.ToHandshakeMessage(out);
socket_receive_buffer_.ToHandshakeMessage(out);
@@ -707,10 +677,6 @@ QuicErrorCode QuicConfig::ProcessPeerHello(
peer_hello, hello_type, error_details);
}
if (error == QUIC_NO_ERROR) {
- error = initial_flow_control_window_bytes_.ProcessPeerHello(
- peer_hello, hello_type, error_details);
- }
- if (error == QUIC_NO_ERROR) {
error = initial_stream_flow_control_window_bytes_.ProcessPeerHello(
peer_hello, hello_type, error_details);
}
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_config_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698