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 24 matching lines...) Expand all Loading... |
35 class HostResolver; | 35 class HostResolver; |
36 class HttpServerProperties; | 36 class HttpServerProperties; |
37 class QuicClock; | 37 class QuicClock; |
38 class QuicChromiumClientSession; | 38 class QuicChromiumClientSession; |
39 class QuicConnectionHelper; | 39 class QuicConnectionHelper; |
40 class QuicCryptoClientStreamFactory; | 40 class QuicCryptoClientStreamFactory; |
41 class QuicRandom; | 41 class QuicRandom; |
42 class QuicServerInfoFactory; | 42 class QuicServerInfoFactory; |
43 class QuicServerId; | 43 class QuicServerId; |
44 class QuicStreamFactory; | 44 class QuicStreamFactory; |
| 45 class SocketPerformanceWatcherFactory; |
45 class TransportSecurityState; | 46 class TransportSecurityState; |
46 | 47 |
47 namespace test { | 48 namespace test { |
48 class QuicStreamFactoryPeer; | 49 class QuicStreamFactoryPeer; |
49 } // namespace test | 50 } // namespace test |
50 | 51 |
51 // Encapsulates a pending request for a QuicHttpStream. | 52 // Encapsulates a pending request for a QuicHttpStream. |
52 // If the request is still pending when it is destroyed, it will | 53 // If the request is still pending when it is destroyed, it will |
53 // cancel the request with the factory. | 54 // cancel the request with the factory. |
54 class NET_EXPORT_PRIVATE QuicStreamRequest { | 55 class NET_EXPORT_PRIVATE QuicStreamRequest { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 public CertDatabase::Observer { | 102 public CertDatabase::Observer { |
102 public: | 103 public: |
103 QuicStreamFactory( | 104 QuicStreamFactory( |
104 HostResolver* host_resolver, | 105 HostResolver* host_resolver, |
105 ClientSocketFactory* client_socket_factory, | 106 ClientSocketFactory* client_socket_factory, |
106 base::WeakPtr<HttpServerProperties> http_server_properties, | 107 base::WeakPtr<HttpServerProperties> http_server_properties, |
107 CertVerifier* cert_verifier, | 108 CertVerifier* cert_verifier, |
108 CertPolicyEnforcer* cert_policy_enforcer, | 109 CertPolicyEnforcer* cert_policy_enforcer, |
109 ChannelIDService* channel_id_service, | 110 ChannelIDService* channel_id_service, |
110 TransportSecurityState* transport_security_state, | 111 TransportSecurityState* transport_security_state, |
| 112 const SocketPerformanceWatcherFactory* socket_performance_watcher_factory, |
111 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 113 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
112 QuicRandom* random_generator, | 114 QuicRandom* random_generator, |
113 QuicClock* clock, | 115 QuicClock* clock, |
114 size_t max_packet_length, | 116 size_t max_packet_length, |
115 const std::string& user_agent_id, | 117 const std::string& user_agent_id, |
116 const QuicVersionVector& supported_versions, | 118 const QuicVersionVector& supported_versions, |
117 bool enable_port_selection, | 119 bool enable_port_selection, |
118 bool always_require_handshake_confirmation, | 120 bool always_require_handshake_confirmation, |
119 bool disable_connection_pooling, | 121 bool disable_connection_pooling, |
120 float load_server_info_timeout_srtt_multiplier, | 122 float load_server_info_timeout_srtt_multiplier, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 HostResolver* host_resolver_; | 319 HostResolver* host_resolver_; |
318 ClientSocketFactory* client_socket_factory_; | 320 ClientSocketFactory* client_socket_factory_; |
319 base::WeakPtr<HttpServerProperties> http_server_properties_; | 321 base::WeakPtr<HttpServerProperties> http_server_properties_; |
320 TransportSecurityState* transport_security_state_; | 322 TransportSecurityState* transport_security_state_; |
321 QuicServerInfoFactory* quic_server_info_factory_; | 323 QuicServerInfoFactory* quic_server_info_factory_; |
322 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; | 324 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; |
323 QuicRandom* random_generator_; | 325 QuicRandom* random_generator_; |
324 scoped_ptr<QuicClock> clock_; | 326 scoped_ptr<QuicClock> clock_; |
325 const size_t max_packet_length_; | 327 const size_t max_packet_length_; |
326 | 328 |
| 329 // Factory which is used to create socket performance watcher. A new watcher |
| 330 // is created for every QUIC connection. |
| 331 // |socket_performance_watcher_factory_| may be null. |
| 332 const SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; |
| 333 |
327 // The helper used for all connections. | 334 // The helper used for all connections. |
328 scoped_ptr<QuicConnectionHelper> helper_; | 335 scoped_ptr<QuicConnectionHelper> helper_; |
329 | 336 |
330 // Contains owning pointers to all sessions that currently exist. | 337 // Contains owning pointers to all sessions that currently exist. |
331 SessionIdMap all_sessions_; | 338 SessionIdMap all_sessions_; |
332 // Contains non-owning pointers to currently active session | 339 // Contains non-owning pointers to currently active session |
333 // (not going away session, once they're implemented). | 340 // (not going away session, once they're implemented). |
334 SessionMap active_sessions_; | 341 SessionMap active_sessions_; |
335 // Map from session to set of aliases that this session is known by. | 342 // Map from session to set of aliases that this session is known by. |
336 SessionAliasMap session_aliases_; | 343 SessionAliasMap session_aliases_; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 base::TaskRunner* task_runner_; | 434 base::TaskRunner* task_runner_; |
428 | 435 |
429 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 436 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
430 | 437 |
431 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 438 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
432 }; | 439 }; |
433 | 440 |
434 } // namespace net | 441 } // namespace net |
435 | 442 |
436 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 443 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |