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 21 matching lines...) Expand all Loading... |
32 class HostResolver; | 32 class HostResolver; |
33 class HttpServerProperties; | 33 class HttpServerProperties; |
34 class QuicClock; | 34 class QuicClock; |
35 class QuicClientSession; | 35 class QuicClientSession; |
36 class QuicConnectionHelper; | 36 class QuicConnectionHelper; |
37 class QuicCryptoClientStreamFactory; | 37 class QuicCryptoClientStreamFactory; |
38 class QuicRandom; | 38 class QuicRandom; |
39 class QuicServerInfoFactory; | 39 class QuicServerInfoFactory; |
40 class QuicServerId; | 40 class QuicServerId; |
41 class QuicStreamFactory; | 41 class QuicStreamFactory; |
| 42 class TransportSecurityState; |
42 | 43 |
43 namespace test { | 44 namespace test { |
44 class QuicStreamFactoryPeer; | 45 class QuicStreamFactoryPeer; |
45 } // namespace test | 46 } // namespace test |
46 | 47 |
47 // Encapsulates a pending request for a QuicHttpStream. | 48 // Encapsulates a pending request for a QuicHttpStream. |
48 // If the request is still pending when it is destroyed, it will | 49 // If the request is still pending when it is destroyed, it will |
49 // cancel the request with the factory. | 50 // cancel the request with the factory. |
50 class NET_EXPORT_PRIVATE QuicStreamRequest { | 51 class NET_EXPORT_PRIVATE QuicStreamRequest { |
51 public: | 52 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 class NET_EXPORT_PRIVATE QuicStreamFactory | 87 class NET_EXPORT_PRIVATE QuicStreamFactory |
87 : public NetworkChangeNotifier::IPAddressObserver, | 88 : public NetworkChangeNotifier::IPAddressObserver, |
88 public CertDatabase::Observer { | 89 public CertDatabase::Observer { |
89 public: | 90 public: |
90 QuicStreamFactory( | 91 QuicStreamFactory( |
91 HostResolver* host_resolver, | 92 HostResolver* host_resolver, |
92 ClientSocketFactory* client_socket_factory, | 93 ClientSocketFactory* client_socket_factory, |
93 base::WeakPtr<HttpServerProperties> http_server_properties, | 94 base::WeakPtr<HttpServerProperties> http_server_properties, |
94 CertVerifier* cert_verifier, | 95 CertVerifier* cert_verifier, |
95 ChannelIDService* channel_id_service, | 96 ChannelIDService* channel_id_service, |
| 97 TransportSecurityState* transport_security_state, |
96 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 98 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
97 QuicRandom* random_generator, | 99 QuicRandom* random_generator, |
98 QuicClock* clock, | 100 QuicClock* clock, |
99 size_t max_packet_length, | 101 size_t max_packet_length, |
100 const std::string& user_agent_id, | 102 const std::string& user_agent_id, |
101 const QuicVersionVector& supported_versions, | 103 const QuicVersionVector& supported_versions, |
102 bool enable_port_selection, | 104 bool enable_port_selection, |
103 bool enable_pacing, | 105 bool enable_pacing, |
104 bool enable_time_based_loss_detection, | 106 bool enable_time_based_loss_detection, |
105 const QuicTagVector& connection_options); | 107 const QuicTagVector& connection_options); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 uint64 port_seed_; | 283 uint64 port_seed_; |
282 | 284 |
283 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 285 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
284 | 286 |
285 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 287 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
286 }; | 288 }; |
287 | 289 |
288 } // namespace net | 290 } // namespace net |
289 | 291 |
290 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 292 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |