| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |