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

Unified Diff: net/quic/quic_config.cc

Issue 559373003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compiler errors 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 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 4542a04f7477d2e84360a6a6422b84bfcc8d860a..74c0b9af8f0d050cf51e06632882d4cb4707d6df 100644
--- a/net/quic/quic_config.cc
+++ b/net/quic/quic_config.cc
@@ -552,6 +552,14 @@ uint32 QuicConfig::ReceivedInitialRoundTripTimeUs() const {
return initial_round_trip_time_us_.GetReceivedValue();
}
+bool QuicConfig::HasInitialRoundTripTimeUsToSend() const {
+ return initial_round_trip_time_us_.HasSendValue();
+}
+
+uint32 QuicConfig::GetInitialRoundTripTimeUsToSend() const {
+ return initial_round_trip_time_us_.GetSendValue();
+}
+
void QuicConfig::SetInitialFlowControlWindowToSend(uint32 window_bytes) {
if (window_bytes < kDefaultFlowControlSendWindow) {
LOG(DFATAL) << "Initial flow control receive window (" << window_bytes
@@ -648,12 +656,12 @@ void QuicConfig::SetDefaults() {
QuicTagVector congestion_feedback;
congestion_feedback.push_back(kQBIC);
congestion_feedback_.set(congestion_feedback, kQBIC);
- idle_connection_state_lifetime_seconds_.set(kDefaultTimeoutSecs,
+ idle_connection_state_lifetime_seconds_.set(kMaximumIdleTimeoutSecs,
kDefaultInitialTimeoutSecs);
// kKATO is optional. Return 0 if not negotiated.
keepalive_timeout_seconds_.set(0, 0);
- max_streams_per_connection_.set(kDefaultMaxStreamsPerConnection,
- kDefaultMaxStreamsPerConnection);
+ set_max_streams_per_connection(kDefaultMaxStreamsPerConnection,
+ kDefaultMaxStreamsPerConnection);
max_time_before_crypto_handshake_ = QuicTime::Delta::FromSeconds(
kDefaultMaxTimeForCryptoHandshakeSecs);
« 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