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 CHROME_BROWSER_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 Optional<bool> enable_quic; | 184 Optional<bool> enable_quic; |
185 Optional<bool> enable_quic_for_proxies; | 185 Optional<bool> enable_quic_for_proxies; |
186 Optional<bool> enable_quic_port_selection; | 186 Optional<bool> enable_quic_port_selection; |
187 Optional<bool> quic_always_require_handshake_confirmation; | 187 Optional<bool> quic_always_require_handshake_confirmation; |
188 Optional<bool> quic_disable_connection_pooling; | 188 Optional<bool> quic_disable_connection_pooling; |
189 Optional<int> quic_load_server_info_timeout_ms; | 189 Optional<int> quic_load_server_info_timeout_ms; |
190 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 190 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
191 Optional<bool> quic_enable_truncated_connection_ids; | 191 Optional<bool> quic_enable_truncated_connection_ids; |
192 Optional<bool> quic_enable_connection_racing; | 192 Optional<bool> quic_enable_connection_racing; |
193 Optional<bool> quic_enable_non_blocking_io; | |
194 Optional<bool> quic_disable_disk_cache; | 193 Optional<bool> quic_disable_disk_cache; |
195 Optional<int> quic_socket_receive_buffer_size; | 194 Optional<int> quic_socket_receive_buffer_size; |
196 Optional<size_t> quic_max_packet_length; | 195 Optional<size_t> quic_max_packet_length; |
197 net::QuicTagVector quic_connection_options; | 196 net::QuicTagVector quic_connection_options; |
198 Optional<std::string> quic_user_agent_id; | 197 Optional<std::string> quic_user_agent_id; |
199 Optional<net::QuicVersionVector> quic_supported_versions; | 198 Optional<net::QuicVersionVector> quic_supported_versions; |
200 Optional<net::HostPortPair> origin_to_force_quic_on; | 199 Optional<net::HostPortPair> origin_to_force_quic_on; |
201 bool enable_user_alternate_protocol_ports; | 200 bool enable_user_alternate_protocol_ports; |
202 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 201 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
203 // main frame load fails with a DNS error in order to provide more useful | 202 // main frame load fails with a DNS error in order to provide more useful |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 const VariationParameters& quic_trial_params); | 378 const VariationParameters& quic_trial_params); |
380 | 379 |
381 // Returns true if QUIC's TruncatedConnectionIds should be enabled. | 380 // Returns true if QUIC's TruncatedConnectionIds should be enabled. |
382 static bool ShouldQuicEnableTruncatedConnectionIds( | 381 static bool ShouldQuicEnableTruncatedConnectionIds( |
383 const VariationParameters& quic_trial_params); | 382 const VariationParameters& quic_trial_params); |
384 | 383 |
385 // Returns true if QUIC's connection racing should be enabled. | 384 // Returns true if QUIC's connection racing should be enabled. |
386 static bool ShouldQuicEnableConnectionRacing( | 385 static bool ShouldQuicEnableConnectionRacing( |
387 const VariationParameters& quic_trial_params); | 386 const VariationParameters& quic_trial_params); |
388 | 387 |
389 // Returns true if QUIC's should use non-blocking IO. | |
390 static bool ShouldQuicEnableNonBlockingIO( | |
391 const VariationParameters& quic_trial_params); | |
392 | |
393 // Returns true if QUIC shouldn't load QUIC server information from the disk | 388 // Returns true if QUIC shouldn't load QUIC server information from the disk |
394 // cache. | 389 // cache. |
395 static bool ShouldQuicDisableDiskCache( | 390 static bool ShouldQuicDisableDiskCache( |
396 const VariationParameters& quic_trial_params); | 391 const VariationParameters& quic_trial_params); |
397 | 392 |
398 // Returns the size of the QUIC receive buffer to use, or 0 if | 393 // Returns the size of the QUIC receive buffer to use, or 0 if |
399 // the default should be used. | 394 // the default should be used. |
400 static int GetQuicSocketReceiveBufferSize( | 395 static int GetQuicSocketReceiveBufferSize( |
401 const VariationParameters& quic_trial_params); | 396 const VariationParameters& quic_trial_params); |
402 | 397 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 bool is_spdy_disabled_by_policy_; | 479 bool is_spdy_disabled_by_policy_; |
485 | 480 |
486 const base::TimeTicks creation_time_; | 481 const base::TimeTicks creation_time_; |
487 | 482 |
488 base::WeakPtrFactory<IOThread> weak_factory_; | 483 base::WeakPtrFactory<IOThread> weak_factory_; |
489 | 484 |
490 DISALLOW_COPY_AND_ASSIGN(IOThread); | 485 DISALLOW_COPY_AND_ASSIGN(IOThread); |
491 }; | 486 }; |
492 | 487 |
493 #endif // CHROME_BROWSER_IO_THREAD_H_ | 488 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |