| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "net/quic/quic_http_stream.h" | 28 #include "net/quic/quic_http_stream.h" |
| 29 #include "net/quic/quic_protocol.h" | 29 #include "net/quic/quic_protocol.h" |
| 30 #include "net/ssl/ssl_config_service.h" | 30 #include "net/ssl/ssl_config_service.h" |
| 31 | 31 |
| 32 namespace net { | 32 namespace net { |
| 33 | 33 |
| 34 class CertPolicyEnforcer; | 34 class CertPolicyEnforcer; |
| 35 class CertVerifier; | 35 class CertVerifier; |
| 36 class ChannelIDService; | 36 class ChannelIDService; |
| 37 class ClientSocketFactory; | 37 class ClientSocketFactory; |
| 38 class CTVerifier; |
| 38 class HostResolver; | 39 class HostResolver; |
| 39 class HttpServerProperties; | 40 class HttpServerProperties; |
| 40 class QuicClock; | 41 class QuicClock; |
| 41 class QuicChromiumClientSession; | 42 class QuicChromiumClientSession; |
| 42 class QuicConnectionHelper; | 43 class QuicConnectionHelper; |
| 43 class QuicCryptoClientStreamFactory; | 44 class QuicCryptoClientStreamFactory; |
| 44 class QuicRandom; | 45 class QuicRandom; |
| 45 class QuicServerId; | 46 class QuicServerId; |
| 46 class QuicServerInfo; | 47 class QuicServerInfo; |
| 47 class QuicServerInfoFactory; | 48 class QuicServerInfoFactory; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 public CertDatabase::Observer { | 108 public CertDatabase::Observer { |
| 108 public: | 109 public: |
| 109 QuicStreamFactory( | 110 QuicStreamFactory( |
| 110 HostResolver* host_resolver, | 111 HostResolver* host_resolver, |
| 111 ClientSocketFactory* client_socket_factory, | 112 ClientSocketFactory* client_socket_factory, |
| 112 base::WeakPtr<HttpServerProperties> http_server_properties, | 113 base::WeakPtr<HttpServerProperties> http_server_properties, |
| 113 CertVerifier* cert_verifier, | 114 CertVerifier* cert_verifier, |
| 114 CertPolicyEnforcer* cert_policy_enforcer, | 115 CertPolicyEnforcer* cert_policy_enforcer, |
| 115 ChannelIDService* channel_id_service, | 116 ChannelIDService* channel_id_service, |
| 116 TransportSecurityState* transport_security_state, | 117 TransportSecurityState* transport_security_state, |
| 118 CTVerifier* cert_transparency_verifier, |
| 117 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, | 119 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, |
| 118 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 120 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
| 119 QuicRandom* random_generator, | 121 QuicRandom* random_generator, |
| 120 QuicClock* clock, | 122 QuicClock* clock, |
| 121 size_t max_packet_length, | 123 size_t max_packet_length, |
| 122 const std::string& user_agent_id, | 124 const std::string& user_agent_id, |
| 123 const QuicVersionVector& supported_versions, | 125 const QuicVersionVector& supported_versions, |
| 124 bool enable_port_selection, | 126 bool enable_port_selection, |
| 125 bool always_require_handshake_confirmation, | 127 bool always_require_handshake_confirmation, |
| 126 bool disable_connection_pooling, | 128 bool disable_connection_pooling, |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 bool was_session_active); | 325 bool was_session_active); |
| 324 | 326 |
| 325 // Collect stats from recent connections, possibly disabling Quic. | 327 // Collect stats from recent connections, possibly disabling Quic. |
| 326 void MaybeDisableQuic(QuicChromiumClientSession* session); | 328 void MaybeDisableQuic(QuicChromiumClientSession* session); |
| 327 | 329 |
| 328 bool require_confirmation_; | 330 bool require_confirmation_; |
| 329 HostResolver* host_resolver_; | 331 HostResolver* host_resolver_; |
| 330 ClientSocketFactory* client_socket_factory_; | 332 ClientSocketFactory* client_socket_factory_; |
| 331 base::WeakPtr<HttpServerProperties> http_server_properties_; | 333 base::WeakPtr<HttpServerProperties> http_server_properties_; |
| 332 TransportSecurityState* transport_security_state_; | 334 TransportSecurityState* transport_security_state_; |
| 335 CTVerifier* cert_transparency_verifier_; |
| 333 scoped_ptr<QuicServerInfoFactory> quic_server_info_factory_; | 336 scoped_ptr<QuicServerInfoFactory> quic_server_info_factory_; |
| 334 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; | 337 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; |
| 335 QuicRandom* random_generator_; | 338 QuicRandom* random_generator_; |
| 336 scoped_ptr<QuicClock> clock_; | 339 scoped_ptr<QuicClock> clock_; |
| 337 const size_t max_packet_length_; | 340 const size_t max_packet_length_; |
| 338 | 341 |
| 339 // Factory which is used to create socket performance watcher. A new watcher | 342 // Factory which is used to create socket performance watcher. A new watcher |
| 340 // is created for every QUIC connection. | 343 // is created for every QUIC connection. |
| 341 // |socket_performance_watcher_factory_| may be null. | 344 // |socket_performance_watcher_factory_| may be null. |
| 342 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; | 345 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 base::TaskRunner* task_runner_; | 463 base::TaskRunner* task_runner_; |
| 461 | 464 |
| 462 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 465 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 463 | 466 |
| 464 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 467 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 465 }; | 468 }; |
| 466 | 469 |
| 467 } // namespace net | 470 } // namespace net |
| 468 | 471 |
| 469 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 472 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |