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

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

Issue 975613002: QUIC - minor cleanup of the following field trials and used defaults for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set default value for srtt_multiplier in net Created 5 years, 9 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
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 TransportSecurityState* transport_security_state, 98 TransportSecurityState* transport_security_state,
99 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 99 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
100 QuicRandom* random_generator, 100 QuicRandom* random_generator,
101 QuicClock* clock, 101 QuicClock* clock,
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,
109 float load_server_info_timeout_srtt_multiplier, 108 float load_server_info_timeout_srtt_multiplier,
110 bool enable_truncated_connection_ids,
111 bool enable_connection_racing, 109 bool enable_connection_racing,
112 bool enable_non_blocking_io, 110 bool enable_non_blocking_io,
113 bool disable_disk_cache, 111 bool disable_disk_cache,
114 int socket_receive_buffer_size, 112 int socket_receive_buffer_size,
115 const QuicTagVector& connection_options); 113 const QuicTagVector& connection_options);
116 ~QuicStreamFactory() override; 114 ~QuicStreamFactory() override;
117 115
118 // Creates a new QuicHttpStream to |host_port_pair| which will be 116 // 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. 117 // 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 118 // If a matching session already exists, this method will return OK. If no
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // connection. 304 // connection.
307 bool enable_port_selection_; 305 bool enable_port_selection_;
308 306
309 // Set if we always require handshake confirmation. If true, this will 307 // Set if we always require handshake confirmation. If true, this will
310 // introduce at least one RTT for the handshake before the client sends data. 308 // introduce at least one RTT for the handshake before the client sends data.
311 bool always_require_handshake_confirmation_; 309 bool always_require_handshake_confirmation_;
312 310
313 // Set if we do not want connection pooling. 311 // Set if we do not want connection pooling.
314 bool disable_connection_pooling_; 312 bool disable_connection_pooling_;
315 313
316 // Specifies the timeout in milliseconds to wait for loading of QUIC server
317 // information. If we don't want to timeout, set
318 // |load_server_info_timeout_ms_| to 0.
319 int load_server_info_timeout_ms_;
320
321 // Specifies the ratio between time to load QUIC server information from disk 314 // Specifies the ratio between time to load QUIC server information from disk
322 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in 315 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in
323 // milliseconds to wait for loading of QUIC server information. If we don't 316 // milliseconds to wait for loading of QUIC server information. If we don't
324 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. 317 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0.
325 float load_server_info_timeout_srtt_multiplier_; 318 float load_server_info_timeout_srtt_multiplier_;
326 319
327 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0.
328 bool enable_truncated_connection_ids_;
329
330 // Set if we want to race connections - one connection that sends 320 // Set if we want to race connections - one connection that sends
331 // INCHOATE_HELLO and another connection that sends CHLO after loading server 321 // INCHOATE_HELLO and another connection that sends CHLO after loading server
332 // config from the disk cache. 322 // config from the disk cache.
333 bool enable_connection_racing_; 323 bool enable_connection_racing_;
334 324
335 // Set if experimental non-blocking IO should be used on windows sockets. 325 // Set if experimental non-blocking IO should be used on windows sockets.
336 bool enable_non_blocking_io_; 326 bool enable_non_blocking_io_;
337 327
338 // Set if we do not want to load server config from the disk cache. 328 // Set if we do not want to load server config from the disk cache.
339 bool disable_disk_cache_; 329 bool disable_disk_cache_;
(...skipping 19 matching lines...) Expand all
359 base::TaskRunner* task_runner_; 349 base::TaskRunner* task_runner_;
360 350
361 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 351 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
362 352
363 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 353 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
364 }; 354 };
365 355
366 } // namespace net 356 } // namespace net
367 357
368 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 358 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698