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