Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: net/quic/quic_stream_factory.h

Issue 1610943002: Disable QUIC when a connection timesout with open streams by setting threshold value to 1 when flag… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DISABLE_QUIC_WHEN_CONNECTION_TIMEOUT
Patch Set: fix a typo, add unittest Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool prefer_aes, 142 bool prefer_aes,
143 int max_number_of_lossy_connections, 143 int max_number_of_lossy_connections,
144 float packet_loss_threshold, 144 float packet_loss_threshold,
145 int max_recent_disabled_reasons, 145 int max_recent_disabled_reasons,
146 int threshold_timeouts_with_streams_open, 146 int threshold_timeouts_with_streams_open,
147 int threshold_public_resets_post_handshake, 147 int threshold_public_resets_post_handshake,
148 int socket_receive_buffer_size, 148 int socket_receive_buffer_size,
149 bool delay_tcp_race, 149 bool delay_tcp_race,
150 int max_server_configs_stored_in_properties, 150 int max_server_configs_stored_in_properties,
151 bool close_sessions_on_ip_change, 151 bool close_sessions_on_ip_change,
152 bool disable_quic_when_connection_times_out_with_open_streams,
152 int idle_connection_timeout_seconds, 153 int idle_connection_timeout_seconds,
153 bool migrate_sessions_on_network_change, 154 bool migrate_sessions_on_network_change,
154 const QuicTagVector& connection_options); 155 const QuicTagVector& connection_options);
155 ~QuicStreamFactory() override; 156 ~QuicStreamFactory() override;
156 157
157 // Returns true if there is an existing session to |server_id| which can be 158 // Returns true if there is an existing session to |server_id| which can be
158 // used for request to |origin_host|. 159 // used for request to |origin_host|.
159 bool CanUseExistingSession(QuicServerId server_id, 160 bool CanUseExistingSession(QuicServerId server_id,
160 PrivacyMode privacy_mode, 161 PrivacyMode privacy_mode,
161 StringPiece origin_host); 162 StringPiece origin_host);
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 base::TaskRunner* task_runner_; 505 base::TaskRunner* task_runner_;
505 506
506 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 507 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
507 508
508 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 509 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
509 }; 510 };
510 511
511 } // namespace net 512 } // namespace net
512 513
513 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 514 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698