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 TransportSecurityState* transport_security_state, | 98 TransportSecurityState* transport_security_state, |
99 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, | 99 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, |
100 QuicRandom* random_generator, | 100 QuicRandom* random_generator, |
101 QuicClock* clock, | 101 QuicClock* clock, |
102 size_t max_packet_length, | 102 size_t max_packet_length, |
103 const std::string& user_agent_id, | 103 const std::string& user_agent_id, |
104 const QuicVersionVector& supported_versions, | 104 const QuicVersionVector& supported_versions, |
105 bool enable_port_selection, | 105 bool enable_port_selection, |
106 bool always_require_handshake_confirmation, | 106 bool always_require_handshake_confirmation, |
107 bool disable_connection_pooling, | 107 bool disable_connection_pooling, |
108 int load_server_info_timeout, | |
109 float load_server_info_timeout_srtt_multiplier, | 108 float load_server_info_timeout_srtt_multiplier, |
110 bool enable_truncated_connection_ids, | |
111 bool enable_connection_racing, | 109 bool enable_connection_racing, |
112 bool enable_non_blocking_io, | 110 bool enable_non_blocking_io, |
113 bool disable_disk_cache, | 111 bool disable_disk_cache, |
114 int socket_receive_buffer_size, | 112 int socket_receive_buffer_size, |
115 const QuicTagVector& connection_options); | 113 const QuicTagVector& connection_options); |
116 ~QuicStreamFactory() override; | 114 ~QuicStreamFactory() override; |
117 | 115 |
118 // Creates a new QuicHttpStream to |host_port_pair| which will be | 116 // Creates a new QuicHttpStream to |host_port_pair| which will be |
119 // owned by |request|. |is_https| specifies if the protocol is https or not. | 117 // owned by |request|. |is_https| specifies if the protocol is https or not. |
120 // If a matching session already exists, this method will return OK. If no | 118 // If a matching session already exists, this method will return OK. If no |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // connection. | 304 // connection. |
307 bool enable_port_selection_; | 305 bool enable_port_selection_; |
308 | 306 |
309 // Set if we always require handshake confirmation. If true, this will | 307 // Set if we always require handshake confirmation. If true, this will |
310 // introduce at least one RTT for the handshake before the client sends data. | 308 // introduce at least one RTT for the handshake before the client sends data. |
311 bool always_require_handshake_confirmation_; | 309 bool always_require_handshake_confirmation_; |
312 | 310 |
313 // Set if we do not want connection pooling. | 311 // Set if we do not want connection pooling. |
314 bool disable_connection_pooling_; | 312 bool disable_connection_pooling_; |
315 | 313 |
316 // Specifies the timeout in milliseconds to wait for loading of QUIC server | |
317 // information. If we don't want to timeout, set | |
318 // |load_server_info_timeout_ms_| to 0. | |
319 int load_server_info_timeout_ms_; | |
320 | |
321 // Specifies the ratio between time to load QUIC server information from disk | 314 // Specifies the ratio between time to load QUIC server information from disk |
322 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in | 315 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in |
323 // milliseconds to wait for loading of QUIC server information. If we don't | 316 // milliseconds to wait for loading of QUIC server information. If we don't |
324 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. | 317 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. |
325 float load_server_info_timeout_srtt_multiplier_; | 318 float load_server_info_timeout_srtt_multiplier_; |
326 | 319 |
327 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0. | |
328 bool enable_truncated_connection_ids_; | |
329 | |
330 // Set if we want to race connections - one connection that sends | 320 // Set if we want to race connections - one connection that sends |
331 // INCHOATE_HELLO and another connection that sends CHLO after loading server | 321 // INCHOATE_HELLO and another connection that sends CHLO after loading server |
332 // config from the disk cache. | 322 // config from the disk cache. |
333 bool enable_connection_racing_; | 323 bool enable_connection_racing_; |
334 | 324 |
335 // Set if experimental non-blocking IO should be used on windows sockets. | 325 // Set if experimental non-blocking IO should be used on windows sockets. |
336 bool enable_non_blocking_io_; | 326 bool enable_non_blocking_io_; |
337 | 327 |
338 // Set if we do not want to load server config from the disk cache. | 328 // Set if we do not want to load server config from the disk cache. |
339 bool disable_disk_cache_; | 329 bool disable_disk_cache_; |
(...skipping 19 matching lines...) Expand all Loading... |
359 base::TaskRunner* task_runner_; | 349 base::TaskRunner* task_runner_; |
360 | 350 |
361 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 351 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
362 | 352 |
363 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 353 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
364 }; | 354 }; |
365 | 355 |
366 } // namespace net | 356 } // namespace net |
367 | 357 |
368 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 358 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |