| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 int threshold_timeouts_with_streams_open, | 185 int threshold_timeouts_with_streams_open, |
| 186 int threshold_public_resets_post_handshake, | 186 int threshold_public_resets_post_handshake, |
| 187 int socket_receive_buffer_size, | 187 int socket_receive_buffer_size, |
| 188 bool delay_tcp_race, | 188 bool delay_tcp_race, |
| 189 int max_server_configs_stored_in_properties, | 189 int max_server_configs_stored_in_properties, |
| 190 bool close_sessions_on_ip_change, | 190 bool close_sessions_on_ip_change, |
| 191 bool disable_quic_on_timeout_with_open_streams, | 191 bool disable_quic_on_timeout_with_open_streams, |
| 192 int idle_connection_timeout_seconds, | 192 int idle_connection_timeout_seconds, |
| 193 bool migrate_sessions_on_network_change, | 193 bool migrate_sessions_on_network_change, |
| 194 bool migrate_sessions_early, | 194 bool migrate_sessions_early, |
| 195 bool force_hol_blocking, |
| 195 const QuicTagVector& connection_options, | 196 const QuicTagVector& connection_options, |
| 196 bool enable_token_binding); | 197 bool enable_token_binding); |
| 197 ~QuicStreamFactory() override; | 198 ~QuicStreamFactory() override; |
| 198 | 199 |
| 199 // Returns true if there is an existing session for |server_id| or if the | 200 // Returns true if there is an existing session for |server_id| or if the |
| 200 // request can be pooled to an existing session to the IP address of | 201 // request can be pooled to an existing session to the IP address of |
| 201 // |destination|. | 202 // |destination|. |
| 202 bool CanUseExistingSession(const QuicServerId& server_id, | 203 bool CanUseExistingSession(const QuicServerId& server_id, |
| 203 const HostPortPair& destination); | 204 const HostPortPair& destination); |
| 204 | 205 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 const bool close_sessions_on_ip_change_; | 566 const bool close_sessions_on_ip_change_; |
| 566 | 567 |
| 567 // Set if migration should be attempted on active sessions when primary | 568 // Set if migration should be attempted on active sessions when primary |
| 568 // interface changes. | 569 // interface changes. |
| 569 const bool migrate_sessions_on_network_change_; | 570 const bool migrate_sessions_on_network_change_; |
| 570 | 571 |
| 571 // Set if early migration should be attempted when the connection | 572 // Set if early migration should be attempted when the connection |
| 572 // experiences poor connectivity. | 573 // experiences poor connectivity. |
| 573 const bool migrate_sessions_early_; | 574 const bool migrate_sessions_early_; |
| 574 | 575 |
| 576 // If set, force HOL blocking. For measurement purposes. |
| 577 const bool force_hol_blocking_; |
| 578 |
| 575 // Each profile will (probably) have a unique port_seed_ value. This value | 579 // Each profile will (probably) have a unique port_seed_ value. This value |
| 576 // is used to help seed a pseudo-random number generator (PortSuggester) so | 580 // is used to help seed a pseudo-random number generator (PortSuggester) so |
| 577 // that we consistently (within this profile) suggest the same ephemeral | 581 // that we consistently (within this profile) suggest the same ephemeral |
| 578 // port when we re-connect to any given server/port. The differences between | 582 // port when we re-connect to any given server/port. The differences between |
| 579 // profiles (probablistically) prevent two profiles from colliding in their | 583 // profiles (probablistically) prevent two profiles from colliding in their |
| 580 // ephemeral port requests. | 584 // ephemeral port requests. |
| 581 uint64_t port_seed_; | 585 uint64_t port_seed_; |
| 582 | 586 |
| 583 // Local address of socket that was created in CreateSession. | 587 // Local address of socket that was created in CreateSession. |
| 584 IPEndPoint local_address_; | 588 IPEndPoint local_address_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 600 const scoped_refptr<SSLConfigService> ssl_config_service_; | 604 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 601 | 605 |
| 602 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 606 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 603 | 607 |
| 604 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 608 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 605 }; | 609 }; |
| 606 | 610 |
| 607 } // namespace net | 611 } // namespace net |
| 608 | 612 |
| 609 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 613 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |