| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 int threshold_timeouts_with_streams_open, | 179 int threshold_timeouts_with_streams_open, |
| 180 int threshold_public_resets_post_handshake, | 180 int threshold_public_resets_post_handshake, |
| 181 int socket_receive_buffer_size, | 181 int socket_receive_buffer_size, |
| 182 bool delay_tcp_race, | 182 bool delay_tcp_race, |
| 183 int max_server_configs_stored_in_properties, | 183 int max_server_configs_stored_in_properties, |
| 184 bool close_sessions_on_ip_change, | 184 bool close_sessions_on_ip_change, |
| 185 bool disable_quic_on_timeout_with_open_streams, | 185 bool disable_quic_on_timeout_with_open_streams, |
| 186 int idle_connection_timeout_seconds, | 186 int idle_connection_timeout_seconds, |
| 187 bool migrate_sessions_on_network_change, | 187 bool migrate_sessions_on_network_change, |
| 188 bool migrate_sessions_early, | 188 bool migrate_sessions_early, |
| 189 bool force_hol_blocking, |
| 189 const QuicTagVector& connection_options, | 190 const QuicTagVector& connection_options, |
| 190 bool enable_token_binding); | 191 bool enable_token_binding); |
| 191 ~QuicStreamFactory() override; | 192 ~QuicStreamFactory() override; |
| 192 | 193 |
| 193 // Returns true if there is an existing session for |server_id| or if the | 194 // Returns true if there is an existing session for |server_id| or if the |
| 194 // request can be pooled to an existing session to the IP address of | 195 // request can be pooled to an existing session to the IP address of |
| 195 // |destination|. | 196 // |destination|. |
| 196 bool CanUseExistingSession(const QuicServerId& server_id, | 197 bool CanUseExistingSession(const QuicServerId& server_id, |
| 197 const HostPortPair& destination); | 198 const HostPortPair& destination); |
| 198 | 199 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 const bool close_sessions_on_ip_change_; | 554 const bool close_sessions_on_ip_change_; |
| 554 | 555 |
| 555 // Set if migration should be attempted on active sessions when primary | 556 // Set if migration should be attempted on active sessions when primary |
| 556 // interface changes. | 557 // interface changes. |
| 557 const bool migrate_sessions_on_network_change_; | 558 const bool migrate_sessions_on_network_change_; |
| 558 | 559 |
| 559 // Set if early migration should be attempted when the connection | 560 // Set if early migration should be attempted when the connection |
| 560 // experiences poor connectivity. | 561 // experiences poor connectivity. |
| 561 const bool migrate_sessions_early_; | 562 const bool migrate_sessions_early_; |
| 562 | 563 |
| 564 // If set, force HOL blocking. For measurement purposes. |
| 565 const bool force_hol_blocking_; |
| 566 |
| 563 // Each profile will (probably) have a unique port_seed_ value. This value | 567 // Each profile will (probably) have a unique port_seed_ value. This value |
| 564 // is used to help seed a pseudo-random number generator (PortSuggester) so | 568 // is used to help seed a pseudo-random number generator (PortSuggester) so |
| 565 // that we consistently (within this profile) suggest the same ephemeral | 569 // that we consistently (within this profile) suggest the same ephemeral |
| 566 // port when we re-connect to any given server/port. The differences between | 570 // port when we re-connect to any given server/port. The differences between |
| 567 // profiles (probablistically) prevent two profiles from colliding in their | 571 // profiles (probablistically) prevent two profiles from colliding in their |
| 568 // ephemeral port requests. | 572 // ephemeral port requests. |
| 569 uint64_t port_seed_; | 573 uint64_t port_seed_; |
| 570 | 574 |
| 571 // Local address of socket that was created in CreateSession. | 575 // Local address of socket that was created in CreateSession. |
| 572 IPEndPoint local_address_; | 576 IPEndPoint local_address_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 588 const scoped_refptr<SSLConfigService> ssl_config_service_; | 592 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 589 | 593 |
| 590 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 594 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 591 | 595 |
| 592 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 596 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 593 }; | 597 }; |
| 594 | 598 |
| 595 } // namespace net | 599 } // namespace net |
| 596 | 600 |
| 597 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 601 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |