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 #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 Loading... |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |