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

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

Issue 2308043003: Landing Recent QUIC changes until 5:55 PM, Aug 25, 2016 UTC-4 (Closed)
Patch Set: Fixes for various tests Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/core/congestion_control/rtt_stats_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/quic/chromium/quic_stream_factory.h" 5 #include "net/quic/chromium/quic_stream_factory.h"
6 6
7 #include <openssl/aead.h> 7 #include <openssl/aead.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <tuple> 10 #include <tuple>
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 if (base::ContainsKey(quic_supported_servers_at_startup_, 1961 if (base::ContainsKey(quic_supported_servers_at_startup_,
1962 server_id.host_port_pair())) { 1962 server_id.host_port_pair())) {
1963 UMA_HISTOGRAM_BOOLEAN("Net.QuicServerInfo.ExpectConfigMissingFromDiskCache", 1963 UMA_HISTOGRAM_BOOLEAN("Net.QuicServerInfo.ExpectConfigMissingFromDiskCache",
1964 server_info->state().server_config.empty()); 1964 server_info->state().server_config.empty());
1965 } 1965 }
1966 1966
1967 cached->Initialize(server_info->state().server_config, 1967 cached->Initialize(server_info->state().server_config,
1968 server_info->state().source_address_token, 1968 server_info->state().source_address_token,
1969 server_info->state().certs, server_info->state().cert_sct, 1969 server_info->state().certs, server_info->state().cert_sct,
1970 server_info->state().chlo_hash, 1970 server_info->state().chlo_hash,
1971 server_info->state().server_config_sig, clock_->WallNow()); 1971 server_info->state().server_config_sig, clock_->WallNow(),
1972 QuicWallTime::Zero());
1972 } 1973 }
1973 1974
1974 void QuicStreamFactory::MaybeInitialize() { 1975 void QuicStreamFactory::MaybeInitialize() {
1975 // We don't initialize data from HttpServerProperties in the constructor 1976 // We don't initialize data from HttpServerProperties in the constructor
1976 // because HttpServerProperties has not yet initialized. We're guaranteed 1977 // because HttpServerProperties has not yet initialized. We're guaranteed
1977 // HttpServerProperties has been initialized by the first time a request is 1978 // HttpServerProperties has been initialized by the first time a request is
1978 // made. 1979 // made.
1979 if (has_initialized_data_) 1980 if (has_initialized_data_)
1980 return; 1981 return;
1981 1982
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 // Since the session was active, there's no longer an 2053 // Since the session was active, there's no longer an
2053 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 2054 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
2054 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 2055 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
2055 // it as recently broken, which means that 0-RTT will be disabled but we'll 2056 // it as recently broken, which means that 0-RTT will be disabled but we'll
2056 // still race. 2057 // still race.
2057 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 2058 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
2058 alternative_service); 2059 alternative_service);
2059 } 2060 }
2060 2061
2061 } // namespace net 2062 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/congestion_control/rtt_stats_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698