| 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_time_based_loss_detection, | |
| 106 bool always_require_handshake_confirmation, | 105 bool always_require_handshake_confirmation, |
| 107 bool disable_connection_pooling, | 106 bool disable_connection_pooling, |
| 108 const QuicTagVector& connection_options); | 107 const QuicTagVector& connection_options); |
| 109 virtual ~QuicStreamFactory(); | 108 virtual ~QuicStreamFactory(); |
| 110 | 109 |
| 111 // Creates a new QuicHttpStream to |host_port_pair| which will be | 110 // Creates a new QuicHttpStream to |host_port_pair| which will be |
| 112 // owned by |request|. |is_https| specifies if the protocol is https or not. | 111 // owned by |request|. |is_https| specifies if the protocol is https or not. |
| 113 // If a matching session already exists, this method will return OK. If no | 112 // If a matching session already exists, this method will return OK. If no |
| 114 // matching session exists, this will return ERR_IO_PENDING and will invoke | 113 // matching session exists, this will return ERR_IO_PENDING and will invoke |
| 115 // OnRequestComplete asynchronously. | 114 // OnRequestComplete asynchronously. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 uint64 port_seed_; | 293 uint64 port_seed_; |
| 295 | 294 |
| 296 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 295 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 297 | 296 |
| 298 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 297 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 299 }; | 298 }; |
| 300 | 299 |
| 301 } // namespace net | 300 } // namespace net |
| 302 | 301 |
| 303 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 302 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |