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

Side by Side Diff: net/tools/quic/quic_server_session.cc

Issue 1032483003: Deprecate FLAGS_quic_enable_bandwidth_resumption_experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_extra_newline_88898832
Patch Set: Created 5 years, 9 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_server_session.cc ('k') | net/tools/quic/quic_server_session_test.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/tools/quic/quic_server_session.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/crypto/cached_network_parameters.h" 8 #include "net/quic/crypto/cached_network_parameters.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 30 matching lines...) Expand all
41 41
42 if (!config()->HasReceivedConnectionOptions()) { 42 if (!config()->HasReceivedConnectionOptions()) {
43 return; 43 return;
44 } 44 }
45 45
46 // If the client has provided a bandwidth estimate from the same serving 46 // If the client has provided a bandwidth estimate from the same serving
47 // region, then pass it to the sent packet manager in preparation for possible 47 // region, then pass it to the sent packet manager in preparation for possible
48 // bandwidth resumption. 48 // bandwidth resumption.
49 const CachedNetworkParameters* cached_network_params = 49 const CachedNetworkParameters* cached_network_params =
50 crypto_stream_->previous_cached_network_params(); 50 crypto_stream_->previous_cached_network_params();
51 if (FLAGS_quic_enable_bandwidth_resumption_experiment && 51 if (cached_network_params != nullptr &&
52 cached_network_params != nullptr &&
53 ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWRE) && 52 ContainsQuicTag(config()->ReceivedConnectionOptions(), kBWRE) &&
54 cached_network_params->serving_region() == serving_region_) { 53 cached_network_params->serving_region() == serving_region_) {
55 connection()->ResumeConnectionState(*cached_network_params); 54 connection()->ResumeConnectionState(*cached_network_params);
56 } 55 }
57 56
58 if (FLAGS_enable_quic_fec && 57 if (FLAGS_enable_quic_fec &&
59 ContainsQuicTag(config()->ReceivedConnectionOptions(), kFHDR)) { 58 ContainsQuicTag(config()->ReceivedConnectionOptions(), kFHDR)) {
60 // kFHDR config maps to FEC protection always for headers stream. 59 // kFHDR config maps to FEC protection always for headers stream.
61 // TODO(jri): Add crypto stream in addition to headers for kHDR. 60 // TODO(jri): Add crypto stream in addition to headers for kHDR.
62 headers_stream_->set_fec_policy(FEC_PROTECT_ALWAYS); 61 headers_stream_->set_fec_policy(FEC_PROTECT_ALWAYS);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 DLOG(ERROR) << "Server push not yet supported"; 192 DLOG(ERROR) << "Server push not yet supported";
194 return nullptr; 193 return nullptr;
195 } 194 }
196 195
197 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 196 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
198 return crypto_stream_.get(); 197 return crypto_stream_.get();
199 } 198 }
200 199
201 } // namespace tools 200 } // namespace tools
202 } // namespace net 201 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_server_session.cc ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698