| 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/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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 load_server_info_timeout_ms_(load_server_info_timeout), | 615 load_server_info_timeout_ms_(load_server_info_timeout), |
| 616 load_server_info_timeout_srtt_multiplier_( | 616 load_server_info_timeout_srtt_multiplier_( |
| 617 load_server_info_timeout_srtt_multiplier), | 617 load_server_info_timeout_srtt_multiplier), |
| 618 enable_truncated_connection_ids_(enable_truncated_connection_ids), | 618 enable_truncated_connection_ids_(enable_truncated_connection_ids), |
| 619 enable_connection_racing_(false), | 619 enable_connection_racing_(false), |
| 620 port_seed_(random_generator_->RandUint64()), | 620 port_seed_(random_generator_->RandUint64()), |
| 621 check_persisted_supports_quic_(true), | 621 check_persisted_supports_quic_(true), |
| 622 task_runner_(nullptr), | 622 task_runner_(nullptr), |
| 623 weak_factory_(this) { | 623 weak_factory_(this) { |
| 624 DCHECK(transport_security_state_); | 624 DCHECK(transport_security_state_); |
| 625 // TODO(michaeln): Remove ScopedTracker below once crbug.com/454983 is fixed |
| 626 tracked_objects::ScopedTracker tracking_profile( |
| 627 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| 628 "454983 QuicStreamFactory::QuicStreamFactory")); |
| 625 crypto_config_.set_user_agent_id(user_agent_id); | 629 crypto_config_.set_user_agent_id(user_agent_id); |
| 626 crypto_config_.AddCanonicalSuffix(".c.youtube.com"); | 630 crypto_config_.AddCanonicalSuffix(".c.youtube.com"); |
| 627 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); | 631 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); |
| 628 crypto_config_.SetProofVerifier( | 632 crypto_config_.SetProofVerifier( |
| 629 new ProofVerifierChromium(cert_verifier, transport_security_state)); | 633 new ProofVerifierChromium(cert_verifier, transport_security_state)); |
| 630 crypto_config_.SetChannelIDSource( | 634 crypto_config_.SetChannelIDSource( |
| 631 new ChannelIDSourceChromium(channel_id_service)); | 635 new ChannelIDSourceChromium(channel_id_service)); |
| 632 base::CPU cpu; | 636 base::CPU cpu; |
| 633 if (cpu.has_aesni() && cpu.has_avx()) | 637 if (cpu.has_aesni() && cpu.has_avx()) |
| 634 crypto_config_.PreferAesGcm(); | 638 crypto_config_.PreferAesGcm(); |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 http_server_properties_->ClearAlternateProtocol(server); | 1338 http_server_properties_->ClearAlternateProtocol(server); |
| 1335 http_server_properties_->SetAlternateProtocol( | 1339 http_server_properties_->SetAlternateProtocol( |
| 1336 server, alternate.port, alternate.protocol, 1); | 1340 server, alternate.port, alternate.protocol, 1); |
| 1337 DCHECK_EQ(QUIC, | 1341 DCHECK_EQ(QUIC, |
| 1338 http_server_properties_->GetAlternateProtocol(server).protocol); | 1342 http_server_properties_->GetAlternateProtocol(server).protocol); |
| 1339 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( | 1343 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( |
| 1340 server)); | 1344 server)); |
| 1341 } | 1345 } |
| 1342 | 1346 |
| 1343 } // namespace net | 1347 } // namespace net |
| OLD | NEW |