| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 always_require_handshake_confirmation, | 105 bool always_require_handshake_confirmation, |
| 106 bool disable_connection_pooling, | 106 bool disable_connection_pooling, |
| 107 int load_server_info_timeout, | 107 int load_server_info_timeout, |
| 108 bool disable_loading_server_info_for_new_servers, | |
| 109 float load_server_info_timeout_srtt_multiplier, | 108 float load_server_info_timeout_srtt_multiplier, |
| 110 bool enable_truncated_connection_ids, | 109 bool enable_truncated_connection_ids, |
| 111 const QuicTagVector& connection_options); | 110 const QuicTagVector& connection_options); |
| 112 ~QuicStreamFactory() override; | 111 ~QuicStreamFactory() override; |
| 113 | 112 |
| 114 // Creates a new QuicHttpStream to |host_port_pair| which will be | 113 // Creates a new QuicHttpStream to |host_port_pair| which will be |
| 115 // owned by |request|. |is_https| specifies if the protocol is https or not. | 114 // owned by |request|. |is_https| specifies if the protocol is https or not. |
| 116 // If a matching session already exists, this method will return OK. If no | 115 // If a matching session already exists, this method will return OK. If no |
| 117 // matching session exists, this will return ERR_IO_PENDING and will invoke | 116 // matching session exists, this will return ERR_IO_PENDING and will invoke |
| 118 // OnRequestComplete asynchronously. | 117 // OnRequestComplete asynchronously. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 bool always_require_handshake_confirmation_; | 289 bool always_require_handshake_confirmation_; |
| 291 | 290 |
| 292 // Set if we do not want connection pooling. | 291 // Set if we do not want connection pooling. |
| 293 bool disable_connection_pooling_; | 292 bool disable_connection_pooling_; |
| 294 | 293 |
| 295 // Specifies the timeout in milliseconds to wait for loading of QUIC server | 294 // Specifies the timeout in milliseconds to wait for loading of QUIC server |
| 296 // information. If we don't want to timeout, set | 295 // information. If we don't want to timeout, set |
| 297 // |load_server_info_timeout_ms_| to 0. | 296 // |load_server_info_timeout_ms_| to 0. |
| 298 int load_server_info_timeout_ms_; | 297 int load_server_info_timeout_ms_; |
| 299 | 298 |
| 300 // Set to disable loading of QUIC server information from disk cache for new | |
| 301 // servers. New servers are those servers for which there is no QUIC protocol | |
| 302 // entry in AlternateProtocolMap. | |
| 303 bool disable_loading_server_info_for_new_servers_; | |
| 304 | |
| 305 // Specifies the ratio between time to load QUIC server information from disk | 299 // Specifies the ratio between time to load QUIC server information from disk |
| 306 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in | 300 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in |
| 307 // milliseconds to wait for loading of QUIC server information. If we don't | 301 // milliseconds to wait for loading of QUIC server information. If we don't |
| 308 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. | 302 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. |
| 309 float load_server_info_timeout_srtt_multiplier_; | 303 float load_server_info_timeout_srtt_multiplier_; |
| 310 | 304 |
| 311 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0. | 305 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0. |
| 312 bool enable_truncated_connection_ids_; | 306 bool enable_truncated_connection_ids_; |
| 313 | 307 |
| 314 // Each profile will (probably) have a unique port_seed_ value. This value is | 308 // Each profile will (probably) have a unique port_seed_ value. This value is |
| (...skipping 12 matching lines...) Expand all Loading... |
| 327 base::TaskRunner* task_runner_; | 321 base::TaskRunner* task_runner_; |
| 328 | 322 |
| 329 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 323 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 330 | 324 |
| 331 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 325 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 332 }; | 326 }; |
| 333 | 327 |
| 334 } // namespace net | 328 } // namespace net |
| 335 | 329 |
| 336 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 330 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |