| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 base::WeakPtr<HttpServerProperties> http_server_properties, | 92 base::WeakPtr<HttpServerProperties> http_server_properties, |
| 93 CertVerifier* cert_verifier, | 93 CertVerifier* cert_verifier, |
| 94 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 94 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
| 95 QuicRandom* random_generator, | 95 QuicRandom* random_generator, |
| 96 QuicClock* clock, | 96 QuicClock* clock, |
| 97 size_t max_packet_length, | 97 size_t max_packet_length, |
| 98 const std::string& user_agent_id, | 98 const std::string& user_agent_id, |
| 99 const QuicVersionVector& supported_versions, | 99 const QuicVersionVector& supported_versions, |
| 100 bool enable_port_selection, | 100 bool enable_port_selection, |
| 101 bool enable_pacing, | 101 bool enable_pacing, |
| 102 bool enable_time_based_loss_detection); | 102 bool enable_time_based_loss_detection, |
| 103 QuicTagVector connection_options); |
| 103 virtual ~QuicStreamFactory(); | 104 virtual ~QuicStreamFactory(); |
| 104 | 105 |
| 105 // Creates a new QuicHttpStream to |host_port_pair| which will be | 106 // Creates a new QuicHttpStream to |host_port_pair| which will be |
| 106 // owned by |request|. |is_https| specifies if the protocol is https or not. | 107 // owned by |request|. |is_https| specifies if the protocol is https or not. |
| 107 // |cert_verifier| is used by ProofVerifier for verifying the certificate | 108 // |cert_verifier| is used by ProofVerifier for verifying the certificate |
| 108 // chain and signature. For http, this can be null. If a matching session | 109 // chain and signature. For http, this can be null. If a matching session |
| 109 // already exists, this method will return OK. If no matching session exists, | 110 // already exists, this method will return OK. If no matching session exists, |
| 110 // this will return ERR_IO_PENDING and will invoke OnRequestComplete | 111 // this will return ERR_IO_PENDING and will invoke OnRequestComplete |
| 111 // asynchronously. | 112 // asynchronously. |
| 112 int Create(const HostPortPair& host_port_pair, | 113 int Create(const HostPortPair& host_port_pair, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 uint64 port_seed_; | 282 uint64 port_seed_; |
| 282 | 283 |
| 283 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 284 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 286 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace net | 289 } // namespace net |
| 289 | 290 |
| 290 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 291 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |