| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 108 int load_server_info_timeout, |
| 109 float load_server_info_timeout_srtt_multiplier, | 109 float load_server_info_timeout_srtt_multiplier, |
| 110 bool enable_truncated_connection_ids, | 110 bool enable_truncated_connection_ids, |
| 111 bool enable_connection_racing, | 111 bool enable_connection_racing, |
| 112 bool enable_non_blocking_io, | |
| 113 bool disable_disk_cache, | 112 bool disable_disk_cache, |
| 114 int socket_receive_buffer_size, | 113 int socket_receive_buffer_size, |
| 115 const QuicTagVector& connection_options); | 114 const QuicTagVector& connection_options); |
| 116 ~QuicStreamFactory() override; | 115 ~QuicStreamFactory() override; |
| 117 | 116 |
| 118 // Creates a new QuicHttpStream to |host_port_pair| which will be | 117 // 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. | 118 // 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 | 119 // If a matching session already exists, this method will return OK. If no |
| 121 // matching session exists, this will return ERR_IO_PENDING and will invoke | 120 // matching session exists, this will return ERR_IO_PENDING and will invoke |
| 122 // OnRequestComplete asynchronously. | 121 // OnRequestComplete asynchronously. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 float load_server_info_timeout_srtt_multiplier_; | 324 float load_server_info_timeout_srtt_multiplier_; |
| 326 | 325 |
| 327 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0. | 326 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0. |
| 328 bool enable_truncated_connection_ids_; | 327 bool enable_truncated_connection_ids_; |
| 329 | 328 |
| 330 // Set if we want to race connections - one connection that sends | 329 // Set if we want to race connections - one connection that sends |
| 331 // INCHOATE_HELLO and another connection that sends CHLO after loading server | 330 // INCHOATE_HELLO and another connection that sends CHLO after loading server |
| 332 // config from the disk cache. | 331 // config from the disk cache. |
| 333 bool enable_connection_racing_; | 332 bool enable_connection_racing_; |
| 334 | 333 |
| 335 // Set if experimental non-blocking IO should be used on windows sockets. | |
| 336 bool enable_non_blocking_io_; | |
| 337 | |
| 338 // Set if we do not want to load server config from the disk cache. | 334 // Set if we do not want to load server config from the disk cache. |
| 339 bool disable_disk_cache_; | 335 bool disable_disk_cache_; |
| 340 | 336 |
| 341 // Size of the UDP receive buffer. | 337 // Size of the UDP receive buffer. |
| 342 int socket_receive_buffer_size_; | 338 int socket_receive_buffer_size_; |
| 343 | 339 |
| 344 // Each profile will (probably) have a unique port_seed_ value. This value | 340 // Each profile will (probably) have a unique port_seed_ value. This value |
| 345 // is used to help seed a pseudo-random number generator (PortSuggester) so | 341 // is used to help seed a pseudo-random number generator (PortSuggester) so |
| 346 // that we consistently (within this profile) suggest the same ephemeral | 342 // that we consistently (within this profile) suggest the same ephemeral |
| 347 // port when we re-connect to any given server/port. The differences between | 343 // port when we re-connect to any given server/port. The differences between |
| (...skipping 11 matching lines...) Expand all Loading... |
| 359 base::TaskRunner* task_runner_; | 355 base::TaskRunner* task_runner_; |
| 360 | 356 |
| 361 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 357 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 362 | 358 |
| 363 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 359 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 364 }; | 360 }; |
| 365 | 361 |
| 366 } // namespace net | 362 } // namespace net |
| 367 | 363 |
| 368 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 364 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |