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