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

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

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_spdy_stream.cc ('k') | net/quic/quic_stream_sequencer.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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 // If the AlternativeServiceMap contained an entry for this host, check if 1352 // If the AlternativeServiceMap contained an entry for this host, check if
1353 // the disk cache contained an entry for it. 1353 // the disk cache contained an entry for it.
1354 if (ContainsKey(quic_supported_servers_at_startup_, 1354 if (ContainsKey(quic_supported_servers_at_startup_,
1355 server_id.host_port_pair())) { 1355 server_id.host_port_pair())) {
1356 UMA_HISTOGRAM_BOOLEAN("Net.QuicServerInfo.ExpectConfigMissingFromDiskCache", 1356 UMA_HISTOGRAM_BOOLEAN("Net.QuicServerInfo.ExpectConfigMissingFromDiskCache",
1357 server_info->state().server_config.empty()); 1357 server_info->state().server_config.empty());
1358 } 1358 }
1359 1359
1360 cached->Initialize(server_info->state().server_config, 1360 cached->Initialize(server_info->state().server_config,
1361 server_info->state().source_address_token, 1361 server_info->state().source_address_token,
1362 server_info->state().certs, 1362 server_info->state().certs, "",
1363 server_info->state().server_config_sig, clock_->WallNow()); 1363 server_info->state().server_config_sig, clock_->WallNow());
1364 } 1364 }
1365 1365
1366 void QuicStreamFactory::MaybeInitialize() { 1366 void QuicStreamFactory::MaybeInitialize() {
1367 // We don't initialize data from HttpServerProperties in the constructor 1367 // We don't initialize data from HttpServerProperties in the constructor
1368 // because HttpServerProperties has not yet initialized. We're guaranteed 1368 // because HttpServerProperties has not yet initialized. We're guaranteed
1369 // HttpServerProperties has been initialized by the first time a request is 1369 // HttpServerProperties has been initialized by the first time a request is
1370 // made. 1370 // made.
1371 if (has_initialized_data_) 1371 if (has_initialized_data_)
1372 return; 1372 return;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 // Since the session was active, there's no longer an 1436 // Since the session was active, there's no longer an
1437 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1437 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1438 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1438 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1439 // it as recently broken, which means that 0-RTT will be disabled but we'll 1439 // it as recently broken, which means that 0-RTT will be disabled but we'll
1440 // still race. 1440 // still race.
1441 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1441 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1442 alternative_service); 1442 alternative_service);
1443 } 1443 }
1444 1444
1445 } // namespace net 1445 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_stream.cc ('k') | net/quic/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698