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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 size_t max_packet_length, | 108 size_t max_packet_length, |
109 const std::string& user_agent_id, | 109 const std::string& user_agent_id, |
110 const QuicVersionVector& supported_versions, | 110 const QuicVersionVector& supported_versions, |
111 bool enable_port_selection, | 111 bool enable_port_selection, |
112 bool always_require_handshake_confirmation, | 112 bool always_require_handshake_confirmation, |
113 bool disable_connection_pooling, | 113 bool disable_connection_pooling, |
114 float load_server_info_timeout_srtt_multiplier, | 114 float load_server_info_timeout_srtt_multiplier, |
115 bool enable_connection_racing, | 115 bool enable_connection_racing, |
116 bool enable_non_blocking_io, | 116 bool enable_non_blocking_io, |
117 bool disable_disk_cache, | 117 bool disable_disk_cache, |
| 118 bool prefer_aes, |
118 int max_number_of_lossy_connections, | 119 int max_number_of_lossy_connections, |
119 float packet_loss_threshold, | 120 float packet_loss_threshold, |
120 int socket_receive_buffer_size, | 121 int socket_receive_buffer_size, |
121 const QuicTagVector& connection_options); | 122 const QuicTagVector& connection_options); |
122 ~QuicStreamFactory() override; | 123 ~QuicStreamFactory() override; |
123 | 124 |
124 // Creates a new QuicHttpStream to |host_port_pair| which will be | 125 // Creates a new QuicHttpStream to |host_port_pair| which will be |
125 // owned by |request|. |is_https| specifies if the protocol is https or not. | 126 // owned by |request|. |is_https| specifies if the protocol is https or not. |
126 // If a matching session already exists, this method will return OK. If no | 127 // If a matching session already exists, this method will return OK. If no |
127 // matching session exists, this will return ERR_IO_PENDING and will invoke | 128 // matching session exists, this will return ERR_IO_PENDING and will invoke |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // INCHOATE_HELLO and another connection that sends CHLO after loading server | 339 // INCHOATE_HELLO and another connection that sends CHLO after loading server |
339 // config from the disk cache. | 340 // config from the disk cache. |
340 bool enable_connection_racing_; | 341 bool enable_connection_racing_; |
341 | 342 |
342 // Set if experimental non-blocking IO should be used on windows sockets. | 343 // Set if experimental non-blocking IO should be used on windows sockets. |
343 bool enable_non_blocking_io_; | 344 bool enable_non_blocking_io_; |
344 | 345 |
345 // Set if we do not want to load server config from the disk cache. | 346 // Set if we do not want to load server config from the disk cache. |
346 bool disable_disk_cache_; | 347 bool disable_disk_cache_; |
347 | 348 |
| 349 // Set if AES-GCM should be preferred, even if there is no hardware support. |
| 350 bool prefer_aes_; |
| 351 |
348 // Set if we want to disable QUIC when there is high packet loss rate. | 352 // Set if we want to disable QUIC when there is high packet loss rate. |
349 // Specifies the maximum number of connections with high packet loss in a row | 353 // Specifies the maximum number of connections with high packet loss in a row |
350 // after which QUIC will be disabled. | 354 // after which QUIC will be disabled. |
351 int max_number_of_lossy_connections_; | 355 int max_number_of_lossy_connections_; |
352 // Specifies packet loss rate in fraction after which a connection is closed | 356 // Specifies packet loss rate in fraction after which a connection is closed |
353 // and is considered as a lossy connection. | 357 // and is considered as a lossy connection. |
354 float packet_loss_threshold_; | 358 float packet_loss_threshold_; |
355 // Count number of lossy connections by port. | 359 // Count number of lossy connections by port. |
356 std::map<uint16, int> number_of_lossy_connections_; | 360 std::map<uint16, int> number_of_lossy_connections_; |
357 | 361 |
(...skipping 18 matching lines...) Expand all Loading... |
376 base::TaskRunner* task_runner_; | 380 base::TaskRunner* task_runner_; |
377 | 381 |
378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 382 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
379 | 383 |
380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 384 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
381 }; | 385 }; |
382 | 386 |
383 } // namespace net | 387 } // namespace net |
384 | 388 |
385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 389 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |