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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // Set if experimental non-blocking IO should be used on windows sockets. | 335 // Set if experimental non-blocking IO should be used on windows sockets. |
336 bool enable_non_blocking_io_; | 336 bool enable_non_blocking_io_; |
337 | 337 |
338 // Set if we do not want to load server config from the disk cache. | 338 // Set if we do not want to load server config from the disk cache. |
339 bool disable_disk_cache_; | 339 bool disable_disk_cache_; |
340 | 340 |
341 // Set if we want to disable QUIC when there is high packet loss rate. | 341 // Set if we want to disable QUIC when there is high packet loss rate. |
342 // Specifies the maximum number of connections with high packet loss in a row | 342 // Specifies the maximum number of connections with high packet loss in a row |
343 // after which QUIC will be disabled. | 343 // after which QUIC will be disabled. |
344 int max_number_of_lossy_connections_; | 344 int max_number_of_lossy_connections_; |
345 // Specifies packet loss rate in franction after which a connection is closed | 345 // Specifies packet loss rate in fraction after which a connection is closed |
346 // and is considered as a lossy connection. | 346 // and is considered as a lossy connection. |
347 float packet_loss_threshold_; | 347 float packet_loss_threshold_; |
348 // Count number of lossy connections by port. | 348 // Count number of lossy connections by port. |
349 std::map<uint16, int> number_of_lossy_connections_; | 349 std::map<uint16, int> number_of_lossy_connections_; |
350 | 350 |
351 // Size of the UDP receive buffer. | 351 // Size of the UDP receive buffer. |
352 int socket_receive_buffer_size_; | 352 int socket_receive_buffer_size_; |
353 | 353 |
354 // Each profile will (probably) have a unique port_seed_ value. This value | 354 // Each profile will (probably) have a unique port_seed_ value. This value |
355 // is used to help seed a pseudo-random number generator (PortSuggester) so | 355 // is used to help seed a pseudo-random number generator (PortSuggester) so |
(...skipping 13 matching lines...) Expand all Loading... |
369 base::TaskRunner* task_runner_; | 369 base::TaskRunner* task_runner_; |
370 | 370 |
371 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 371 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
372 | 372 |
373 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 373 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
374 }; | 374 }; |
375 | 375 |
376 } // namespace net | 376 } // namespace net |
377 | 377 |
378 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 378 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |