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

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

Issue 882973006: Lint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 if (!server_info) 1179 if (!server_info)
1180 return; 1180 return;
1181 1181
1182 QuicCryptoClientConfig::CachedState* cached = 1182 QuicCryptoClientConfig::CachedState* cached =
1183 crypto_config_.LookupOrCreate(server_id); 1183 crypto_config_.LookupOrCreate(server_id);
1184 if (!cached->IsEmpty()) 1184 if (!cached->IsEmpty())
1185 return; 1185 return;
1186 1186
1187 if (http_server_properties_) { 1187 if (http_server_properties_) {
1188 if (quic_supported_servers_at_startup_.empty()) { 1188 if (quic_supported_servers_at_startup_.empty()) {
1189 for (const std::pair<const net::HostPortPair, net::AlternateProtocolInfo>& 1189 for (const std::pair<const HostPortPair, AlternateProtocolInfo>&
1190 key_value : http_server_properties_->alternate_protocol_map()) { 1190 key_value : http_server_properties_->alternate_protocol_map()) {
1191 if (key_value.second.protocol == QUIC) { 1191 if (key_value.second.protocol == QUIC) {
1192 quic_supported_servers_at_startup_.insert(key_value.first); 1192 quic_supported_servers_at_startup_.insert(key_value.first);
1193 } 1193 }
1194 } 1194 }
1195 } 1195 }
1196 1196
1197 // TODO(rtenneti): Delete the following histogram after collecting stats. 1197 // TODO(rtenneti): Delete the following histogram after collecting stats.
1198 // If the AlternateProtocolMap contained an entry for this host, check if 1198 // If the AlternateProtocolMap contained an entry for this host, check if
1199 // the disk cache contained an entry for it. 1199 // the disk cache contained an entry for it.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 http_server_properties_->ClearAlternateProtocol(server); 1272 http_server_properties_->ClearAlternateProtocol(server);
1273 http_server_properties_->SetAlternateProtocol( 1273 http_server_properties_->SetAlternateProtocol(
1274 server, alternate.port, alternate.protocol, 1); 1274 server, alternate.port, alternate.protocol, 1);
1275 DCHECK_EQ(QUIC, 1275 DCHECK_EQ(QUIC,
1276 http_server_properties_->GetAlternateProtocol(server).protocol); 1276 http_server_properties_->GetAlternateProtocol(server).protocol);
1277 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( 1277 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken(
1278 server)); 1278 server));
1279 } 1279 }
1280 1280
1281 } // namespace net 1281 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698