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

Side by Side Diff: ios/chrome/browser/ios_chrome_io_thread.h

Issue 1916783003: QUIC - enable "delay_tcp_race" parameter by default. This feature showed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted unneeded hanging get calls from unittests Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 5 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Optional<bool> quic_always_require_handshake_confirmation; 149 Optional<bool> quic_always_require_handshake_confirmation;
150 Optional<bool> quic_disable_connection_pooling; 150 Optional<bool> quic_disable_connection_pooling;
151 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 151 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
152 Optional<bool> quic_enable_connection_racing; 152 Optional<bool> quic_enable_connection_racing;
153 Optional<bool> quic_enable_non_blocking_io; 153 Optional<bool> quic_enable_non_blocking_io;
154 Optional<bool> quic_disable_disk_cache; 154 Optional<bool> quic_disable_disk_cache;
155 Optional<bool> quic_prefer_aes; 155 Optional<bool> quic_prefer_aes;
156 Optional<int> quic_max_number_of_lossy_connections; 156 Optional<int> quic_max_number_of_lossy_connections;
157 Optional<float> quic_packet_loss_threshold; 157 Optional<float> quic_packet_loss_threshold;
158 Optional<int> quic_socket_receive_buffer_size; 158 Optional<int> quic_socket_receive_buffer_size;
159 Optional<bool> quic_delay_tcp_race;
160 Optional<size_t> quic_max_packet_length; 159 Optional<size_t> quic_max_packet_length;
161 net::QuicTagVector quic_connection_options; 160 net::QuicTagVector quic_connection_options;
162 Optional<std::string> quic_user_agent_id; 161 Optional<std::string> quic_user_agent_id;
163 Optional<net::QuicVersionVector> quic_supported_versions; 162 Optional<net::QuicVersionVector> quic_supported_versions;
164 Optional<bool> quic_close_sessions_on_ip_change; 163 Optional<bool> quic_close_sessions_on_ip_change;
165 }; 164 };
166 165
167 // |net_log| must either outlive the IOSChromeIOThread or be NULL. 166 // |net_log| must either outlive the IOSChromeIOThread or be NULL.
168 IOSChromeIOThread(PrefService* local_state, net_log::ChromeNetLog* net_log); 167 IOSChromeIOThread(PrefService* local_state, net_log::ChromeNetLog* net_log);
169 168
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // closed and is considered as a lossy connection. Returns 0 if the default 320 // closed and is considered as a lossy connection. Returns 0 if the default
322 // value should be used. 321 // value should be used.
323 static float GetQuicPacketLossThreshold( 322 static float GetQuicPacketLossThreshold(
324 const VariationParameters& quic_trial_params); 323 const VariationParameters& quic_trial_params);
325 324
326 // Returns the size of the QUIC receive buffer to use, or 0 if 325 // Returns the size of the QUIC receive buffer to use, or 0 if
327 // the default should be used. 326 // the default should be used.
328 static int GetQuicSocketReceiveBufferSize( 327 static int GetQuicSocketReceiveBufferSize(
329 const VariationParameters& quic_trial_params); 328 const VariationParameters& quic_trial_params);
330 329
331 // Returns true if QUIC should delay TCP connection when QUIC works.
332 static bool ShouldQuicDelayTcpRace(
333 const VariationParameters& quic_trial_params);
334
335 // Returns true if QUIC should close sessions when any of the client's 330 // Returns true if QUIC should close sessions when any of the client's
336 // IP addresses change. 331 // IP addresses change.
337 static bool ShouldQuicCloseSessionsOnIpChange( 332 static bool ShouldQuicCloseSessionsOnIpChange(
338 const VariationParameters& quic_trial_params); 333 const VariationParameters& quic_trial_params);
339 334
340 // Returns the maximum length for QUIC packets, based on any flags in the 335 // Returns the maximum length for QUIC packets, based on any flags in the
341 // field trial. Returns 0 if there is an error parsing any of the options, 336 // field trial. Returns 0 if there is an error parsing any of the options,
342 // or if the default value should be used. 337 // or if the default value should be used.
343 static size_t GetQuicMaxPacketLength( 338 static size_t GetQuicMaxPacketLength(
344 const VariationParameters& quic_trial_params); 339 const VariationParameters& quic_trial_params);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 system_url_request_context_getter_; 388 system_url_request_context_getter_;
394 389
395 const base::TimeTicks creation_time_; 390 const base::TimeTicks creation_time_;
396 391
397 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_; 392 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_;
398 393
399 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread); 394 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread);
400 }; 395 };
401 396
402 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ 397 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_
OLDNEW
« no previous file with comments | « components/cronet/url_request_context_config_unittest.cc ('k') | ios/chrome/browser/ios_chrome_io_thread.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698