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