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

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

Issue 2442633002: Add a QUIC proxy server to the list of QUIC servers supported at start up (Closed)
Patch Set: Rebased, Addressed ryansturm comments Created 4 years, 1 month 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace net { 47 namespace net {
48 48
49 class CTPolicyEnforcer; 49 class CTPolicyEnforcer;
50 class CertVerifier; 50 class CertVerifier;
51 class ChannelIDService; 51 class ChannelIDService;
52 class ClientSocketFactory; 52 class ClientSocketFactory;
53 class CTVerifier; 53 class CTVerifier;
54 class HostResolver; 54 class HostResolver;
55 class HttpServerProperties; 55 class HttpServerProperties;
56 class NetLog; 56 class NetLog;
57 class ProxyDelegate;
57 class QuicClock; 58 class QuicClock;
58 class QuicChromiumAlarmFactory; 59 class QuicChromiumAlarmFactory;
59 class QuicChromiumConnectionHelper; 60 class QuicChromiumConnectionHelper;
60 class QuicCryptoClientStreamFactory; 61 class QuicCryptoClientStreamFactory;
61 class QuicRandom; 62 class QuicRandom;
62 class QuicServerInfo; 63 class QuicServerInfo;
63 class QuicServerInfoFactory; 64 class QuicServerInfoFactory;
64 class QuicStreamFactory; 65 class QuicStreamFactory;
65 class SocketPerformanceWatcherFactory; 66 class SocketPerformanceWatcherFactory;
66 class TransportSecurityState; 67 class TransportSecurityState;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 HostPortPair destination_; 178 HostPortPair destination_;
178 QuicServerId server_id_; 179 QuicServerId server_id_;
179 }; 180 };
180 181
181 QuicStreamFactory( 182 QuicStreamFactory(
182 NetLog* net_log, 183 NetLog* net_log,
183 HostResolver* host_resolver, 184 HostResolver* host_resolver,
184 SSLConfigService* ssl_config_service, 185 SSLConfigService* ssl_config_service,
185 ClientSocketFactory* client_socket_factory, 186 ClientSocketFactory* client_socket_factory,
186 HttpServerProperties* http_server_properties, 187 HttpServerProperties* http_server_properties,
188 ProxyDelegate* proxy_delegate,
187 CertVerifier* cert_verifier, 189 CertVerifier* cert_verifier,
188 CTPolicyEnforcer* ct_policy_enforcer, 190 CTPolicyEnforcer* ct_policy_enforcer,
189 ChannelIDService* channel_id_service, 191 ChannelIDService* channel_id_service,
190 TransportSecurityState* transport_security_state, 192 TransportSecurityState* transport_security_state,
191 CTVerifier* cert_transparency_verifier, 193 CTVerifier* cert_transparency_verifier,
192 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, 194 SocketPerformanceWatcherFactory* socket_performance_watcher_factory,
193 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 195 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
194 QuicRandom* random_generator, 196 QuicRandom* random_generator,
195 QuicClock* clock, 197 QuicClock* clock,
196 size_t max_packet_length, 198 size_t max_packet_length,
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 void OpenFactory(); 494 void OpenFactory();
493 // If QUIC has been working well after having been recently 495 // If QUIC has been working well after having been recently
494 // disabled, clear the |consecutive_disabled_count_|. 496 // disabled, clear the |consecutive_disabled_count_|.
495 void MaybeClearConsecutiveDisabledCount(); 497 void MaybeClearConsecutiveDisabledCount();
496 498
497 bool require_confirmation_; 499 bool require_confirmation_;
498 NetLog* net_log_; 500 NetLog* net_log_;
499 HostResolver* host_resolver_; 501 HostResolver* host_resolver_;
500 ClientSocketFactory* client_socket_factory_; 502 ClientSocketFactory* client_socket_factory_;
501 HttpServerProperties* http_server_properties_; 503 HttpServerProperties* http_server_properties_;
504 ProxyDelegate* proxy_delegate_;
502 TransportSecurityState* transport_security_state_; 505 TransportSecurityState* transport_security_state_;
503 CTVerifier* cert_transparency_verifier_; 506 CTVerifier* cert_transparency_verifier_;
504 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; 507 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_;
505 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; 508 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_;
506 QuicRandom* random_generator_; 509 QuicRandom* random_generator_;
507 std::unique_ptr<QuicClock> clock_; 510 std::unique_ptr<QuicClock> clock_;
508 const size_t max_packet_length_; 511 const size_t max_packet_length_;
509 512
510 // Factory which is used to create socket performance watcher. A new watcher 513 // Factory which is used to create socket performance watcher. A new watcher
511 // is created for every QUIC connection. 514 // is created for every QUIC connection.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 const scoped_refptr<SSLConfigService> ssl_config_service_; 655 const scoped_refptr<SSLConfigService> ssl_config_service_;
653 656
654 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 657 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
655 658
656 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 659 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
657 }; 660 };
658 661
659 } // namespace net 662 } // namespace net
660 663
661 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 664 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698