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

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

Issue 2041863002: Remove HttpServerProperies::GetWeakPtr(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 6 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 | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_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/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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 QuicStreamRequest::CreateBidirectionalStreamImpl() { 590 QuicStreamRequest::CreateBidirectionalStreamImpl() {
591 if (!session_) 591 if (!session_)
592 return nullptr; 592 return nullptr;
593 return base::WrapUnique(new BidirectionalStreamQuicImpl(session_)); 593 return base::WrapUnique(new BidirectionalStreamQuicImpl(session_));
594 } 594 }
595 595
596 QuicStreamFactory::QuicStreamFactory( 596 QuicStreamFactory::QuicStreamFactory(
597 NetLog* net_log, 597 NetLog* net_log,
598 HostResolver* host_resolver, 598 HostResolver* host_resolver,
599 ClientSocketFactory* client_socket_factory, 599 ClientSocketFactory* client_socket_factory,
600 base::WeakPtr<HttpServerProperties> http_server_properties, 600 HttpServerProperties* http_server_properties,
601 CertVerifier* cert_verifier, 601 CertVerifier* cert_verifier,
602 CTPolicyEnforcer* ct_policy_enforcer, 602 CTPolicyEnforcer* ct_policy_enforcer,
603 ChannelIDService* channel_id_service, 603 ChannelIDService* channel_id_service,
604 TransportSecurityState* transport_security_state, 604 TransportSecurityState* transport_security_state,
605 CTVerifier* cert_transparency_verifier, 605 CTVerifier* cert_transparency_verifier,
606 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, 606 SocketPerformanceWatcherFactory* socket_performance_watcher_factory,
607 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 607 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
608 QuicRandom* random_generator, 608 QuicRandom* random_generator,
609 QuicClock* clock, 609 QuicClock* clock,
610 size_t max_packet_length, 610 size_t max_packet_length,
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 // Since the session was active, there's no longer an 1870 // Since the session was active, there's no longer an
1871 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1871 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1872 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1872 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1873 // it as recently broken, which means that 0-RTT will be disabled but we'll 1873 // it as recently broken, which means that 0-RTT will be disabled but we'll
1874 // still race. 1874 // still race.
1875 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1875 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1876 alternative_service); 1876 alternative_service);
1877 } 1877 }
1878 1878
1879 } // namespace net 1879 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698