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 <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 scoped_ptr<QuicHttpStream> QuicStreamRequest::ReleaseStream() { | 539 scoped_ptr<QuicHttpStream> QuicStreamRequest::ReleaseStream() { |
540 DCHECK(stream_); | 540 DCHECK(stream_); |
541 return std::move(stream_); | 541 return std::move(stream_); |
542 } | 542 } |
543 | 543 |
544 QuicStreamFactory::QuicStreamFactory( | 544 QuicStreamFactory::QuicStreamFactory( |
545 HostResolver* host_resolver, | 545 HostResolver* host_resolver, |
546 ClientSocketFactory* client_socket_factory, | 546 ClientSocketFactory* client_socket_factory, |
547 base::WeakPtr<HttpServerProperties> http_server_properties, | 547 base::WeakPtr<HttpServerProperties> http_server_properties, |
548 CertVerifier* cert_verifier, | 548 CertVerifier* cert_verifier, |
549 CertPolicyEnforcer* cert_policy_enforcer, | 549 CTPolicyEnforcer* ct_policy_enforcer, |
550 ChannelIDService* channel_id_service, | 550 ChannelIDService* channel_id_service, |
551 TransportSecurityState* transport_security_state, | 551 TransportSecurityState* transport_security_state, |
552 CTVerifier* cert_transparency_verifier, | 552 CTVerifier* cert_transparency_verifier, |
553 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, | 553 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, |
554 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 554 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
555 QuicRandom* random_generator, | 555 QuicRandom* random_generator, |
556 QuicClock* clock, | 556 QuicClock* clock, |
557 size_t max_packet_length, | 557 size_t max_packet_length, |
558 const std::string& user_agent_id, | 558 const std::string& user_agent_id, |
559 const QuicVersionVector& supported_versions, | 559 const QuicVersionVector& supported_versions, |
(...skipping 23 matching lines...) Expand all Loading... |
583 transport_security_state_(transport_security_state), | 583 transport_security_state_(transport_security_state), |
584 cert_transparency_verifier_(cert_transparency_verifier), | 584 cert_transparency_verifier_(cert_transparency_verifier), |
585 quic_crypto_client_stream_factory_(quic_crypto_client_stream_factory), | 585 quic_crypto_client_stream_factory_(quic_crypto_client_stream_factory), |
586 random_generator_(random_generator), | 586 random_generator_(random_generator), |
587 clock_(clock), | 587 clock_(clock), |
588 max_packet_length_(max_packet_length), | 588 max_packet_length_(max_packet_length), |
589 socket_performance_watcher_factory_(socket_performance_watcher_factory), | 589 socket_performance_watcher_factory_(socket_performance_watcher_factory), |
590 config_(InitializeQuicConfig(connection_options, | 590 config_(InitializeQuicConfig(connection_options, |
591 idle_connection_timeout_seconds)), | 591 idle_connection_timeout_seconds)), |
592 crypto_config_(new ProofVerifierChromium(cert_verifier, | 592 crypto_config_(new ProofVerifierChromium(cert_verifier, |
593 cert_policy_enforcer, | 593 ct_policy_enforcer, |
594 transport_security_state, | 594 transport_security_state, |
595 cert_transparency_verifier)), | 595 cert_transparency_verifier)), |
596 supported_versions_(supported_versions), | 596 supported_versions_(supported_versions), |
597 enable_port_selection_(enable_port_selection), | 597 enable_port_selection_(enable_port_selection), |
598 always_require_handshake_confirmation_( | 598 always_require_handshake_confirmation_( |
599 always_require_handshake_confirmation), | 599 always_require_handshake_confirmation), |
600 disable_connection_pooling_(disable_connection_pooling), | 600 disable_connection_pooling_(disable_connection_pooling), |
601 load_server_info_timeout_srtt_multiplier_( | 601 load_server_info_timeout_srtt_multiplier_( |
602 load_server_info_timeout_srtt_multiplier), | 602 load_server_info_timeout_srtt_multiplier), |
603 enable_connection_racing_(enable_connection_racing), | 603 enable_connection_racing_(enable_connection_racing), |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 // Since the session was active, there's no longer an | 1472 // Since the session was active, there's no longer an |
1473 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP | 1473 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP |
1474 // job also fails. So to avoid not using QUIC when we otherwise could, we mark | 1474 // job also fails. So to avoid not using QUIC when we otherwise could, we mark |
1475 // it as recently broken, which means that 0-RTT will be disabled but we'll | 1475 // it as recently broken, which means that 0-RTT will be disabled but we'll |
1476 // still race. | 1476 // still race. |
1477 http_server_properties_->MarkAlternativeServiceRecentlyBroken( | 1477 http_server_properties_->MarkAlternativeServiceRecentlyBroken( |
1478 alternative_service); | 1478 alternative_service); |
1479 } | 1479 } |
1480 | 1480 |
1481 } // namespace net | 1481 } // namespace net |
OLD | NEW |