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