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

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

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_network_transaction_unittest.cc ('k') | net/quic/quic_stream_factory.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 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 private: 145 private:
146 HostPortPair destination_; 146 HostPortPair destination_;
147 QuicServerId server_id_; 147 QuicServerId server_id_;
148 }; 148 };
149 149
150 QuicStreamFactory( 150 QuicStreamFactory(
151 NetLog* net_log, 151 NetLog* net_log,
152 HostResolver* host_resolver, 152 HostResolver* host_resolver,
153 ClientSocketFactory* client_socket_factory, 153 ClientSocketFactory* client_socket_factory,
154 base::WeakPtr<HttpServerProperties> http_server_properties, 154 HttpServerProperties* http_server_properties,
155 CertVerifier* cert_verifier, 155 CertVerifier* cert_verifier,
156 CTPolicyEnforcer* ct_policy_enforcer, 156 CTPolicyEnforcer* ct_policy_enforcer,
157 ChannelIDService* channel_id_service, 157 ChannelIDService* channel_id_service,
158 TransportSecurityState* transport_security_state, 158 TransportSecurityState* transport_security_state,
159 CTVerifier* cert_transparency_verifier, 159 CTVerifier* cert_transparency_verifier,
160 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, 160 SocketPerformanceWatcherFactory* socket_performance_watcher_factory,
161 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 161 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
162 QuicRandom* random_generator, 162 QuicRandom* random_generator,
163 QuicClock* clock, 163 QuicClock* clock,
164 size_t max_packet_length, 164 size_t max_packet_length,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 // Collect stats from recent connections, possibly disabling Quic. 431 // Collect stats from recent connections, possibly disabling Quic.
432 void MaybeDisableQuic(QuicChromiumClientSession* session); 432 void MaybeDisableQuic(QuicChromiumClientSession* session);
433 433
434 void MaybeDisableQuic(uint16_t port); 434 void MaybeDisableQuic(uint16_t port);
435 435
436 bool require_confirmation_; 436 bool require_confirmation_;
437 NetLog* net_log_; 437 NetLog* net_log_;
438 HostResolver* host_resolver_; 438 HostResolver* host_resolver_;
439 ClientSocketFactory* client_socket_factory_; 439 ClientSocketFactory* client_socket_factory_;
440 base::WeakPtr<HttpServerProperties> http_server_properties_; 440 HttpServerProperties* http_server_properties_;
441 TransportSecurityState* transport_security_state_; 441 TransportSecurityState* transport_security_state_;
442 CTVerifier* cert_transparency_verifier_; 442 CTVerifier* cert_transparency_verifier_;
443 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; 443 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_;
444 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; 444 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_;
445 QuicRandom* random_generator_; 445 QuicRandom* random_generator_;
446 std::unique_ptr<QuicClock> clock_; 446 std::unique_ptr<QuicClock> clock_;
447 const size_t max_packet_length_; 447 const size_t max_packet_length_;
448 448
449 // Factory which is used to create socket performance watcher. A new watcher 449 // Factory which is used to create socket performance watcher. A new watcher
450 // is created for every QUIC connection. 450 // is created for every QUIC connection.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 base::TaskRunner* task_runner_; 585 base::TaskRunner* task_runner_;
586 586
587 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 587 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
588 588
589 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 589 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
590 }; 590 };
591 591
592 } // namespace net 592 } // namespace net
593 593
594 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 594 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698