| 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 <openssl/aead.h> | 7 #include <openssl/aead.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 QuicStreamRequest::CreateBidirectionalStreamImpl() { | 595 QuicStreamRequest::CreateBidirectionalStreamImpl() { |
| 596 if (!session_) | 596 if (!session_) |
| 597 return nullptr; | 597 return nullptr; |
| 598 return base::WrapUnique(new BidirectionalStreamQuicImpl(session_)); | 598 return base::WrapUnique(new BidirectionalStreamQuicImpl(session_)); |
| 599 } | 599 } |
| 600 | 600 |
| 601 QuicStreamFactory::QuicStreamFactory( | 601 QuicStreamFactory::QuicStreamFactory( |
| 602 NetLog* net_log, | 602 NetLog* net_log, |
| 603 HostResolver* host_resolver, | 603 HostResolver* host_resolver, |
| 604 ClientSocketFactory* client_socket_factory, | 604 ClientSocketFactory* client_socket_factory, |
| 605 base::WeakPtr<HttpServerProperties> http_server_properties, | 605 HttpServerProperties* http_server_properties, |
| 606 CertVerifier* cert_verifier, | 606 CertVerifier* cert_verifier, |
| 607 CTPolicyEnforcer* ct_policy_enforcer, | 607 CTPolicyEnforcer* ct_policy_enforcer, |
| 608 ChannelIDService* channel_id_service, | 608 ChannelIDService* channel_id_service, |
| 609 TransportSecurityState* transport_security_state, | 609 TransportSecurityState* transport_security_state, |
| 610 CTVerifier* cert_transparency_verifier, | 610 CTVerifier* cert_transparency_verifier, |
| 611 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, | 611 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, |
| 612 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 612 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
| 613 QuicRandom* random_generator, | 613 QuicRandom* random_generator, |
| 614 QuicClock* clock, | 614 QuicClock* clock, |
| 615 size_t max_packet_length, | 615 size_t max_packet_length, |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 // Since the session was active, there's no longer an | 1877 // Since the session was active, there's no longer an |
| 1878 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP | 1878 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP |
| 1879 // job also fails. So to avoid not using QUIC when we otherwise could, we mark | 1879 // job also fails. So to avoid not using QUIC when we otherwise could, we mark |
| 1880 // it as recently broken, which means that 0-RTT will be disabled but we'll | 1880 // it as recently broken, which means that 0-RTT will be disabled but we'll |
| 1881 // still race. | 1881 // still race. |
| 1882 http_server_properties_->MarkAlternativeServiceRecentlyBroken( | 1882 http_server_properties_->MarkAlternativeServiceRecentlyBroken( |
| 1883 alternative_service); | 1883 alternative_service); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 } // namespace net | 1886 } // namespace net |
| OLD | NEW |