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_nonblocking_io; | |
ramant (doing other things)
2015/02/27 23:03:29
nit: consider "quic_enable_nonblocking_io" -> "qui
Ryan Hamilton
2015/02/27 23:07:26
Done.
| |
193 Optional<bool> quic_disable_disk_cache; | 194 Optional<bool> quic_disable_disk_cache; |
194 Optional<size_t> quic_max_packet_length; | 195 Optional<size_t> quic_max_packet_length; |
195 net::QuicTagVector quic_connection_options; | 196 net::QuicTagVector quic_connection_options; |
196 Optional<std::string> quic_user_agent_id; | 197 Optional<std::string> quic_user_agent_id; |
197 Optional<net::QuicVersionVector> quic_supported_versions; | 198 Optional<net::QuicVersionVector> quic_supported_versions; |
198 Optional<net::HostPortPair> origin_to_force_quic_on; | 199 Optional<net::HostPortPair> origin_to_force_quic_on; |
199 bool enable_user_alternate_protocol_ports; | 200 bool enable_user_alternate_protocol_ports; |
200 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 201 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
201 // 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 |
202 // information to the renderer so it can show a more specific error page. | 203 // information to the renderer so it can show a more specific error page. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 const VariationParameters& quic_trial_params); | 378 const VariationParameters& quic_trial_params); |
378 | 379 |
379 // Returns true if QUIC's TruncatedConnectionIds should be enabled. | 380 // Returns true if QUIC's TruncatedConnectionIds should be enabled. |
380 static bool ShouldQuicEnableTruncatedConnectionIds( | 381 static bool ShouldQuicEnableTruncatedConnectionIds( |
381 const VariationParameters& quic_trial_params); | 382 const VariationParameters& quic_trial_params); |
382 | 383 |
383 // Returns true if QUIC's connection racing should be enabled. | 384 // Returns true if QUIC's connection racing should be enabled. |
384 static bool ShouldQuicEnableConnectionRacing( | 385 static bool ShouldQuicEnableConnectionRacing( |
385 const VariationParameters& quic_trial_params); | 386 const VariationParameters& quic_trial_params); |
386 | 387 |
388 // Returns true if QUIC's should use non-blocking IO. | |
389 static bool ShouldQuicEnableNonblockingIO( | |
ramant (doing other things)
2015/02/27 23:03:29
nit: "ShouldQuicEnableNonblockingIO" -> "ShouldQui
Ryan Hamilton
2015/02/27 23:07:26
Done.
| |
390 const VariationParameters& quic_trial_params); | |
391 | |
387 // Returns true if QUIC shouldn't load QUIC server information from the disk | 392 // Returns true if QUIC shouldn't load QUIC server information from the disk |
388 // cache. | 393 // cache. |
389 static bool ShouldQuicDisableDiskCache( | 394 static bool ShouldQuicDisableDiskCache( |
390 const VariationParameters& quic_trial_params); | 395 const VariationParameters& quic_trial_params); |
391 | 396 |
392 // Returns the maximum length for QUIC packets, based on any flags in | 397 // Returns the maximum length for QUIC packets, based on any flags in |
393 // |command_line| or the field trial. Returns 0 if there is an error | 398 // |command_line| or the field trial. Returns 0 if there is an error |
394 // parsing any of the options, or if the default value should be used. | 399 // parsing any of the options, or if the default value should be used. |
395 static size_t GetQuicMaxPacketLength( | 400 static size_t GetQuicMaxPacketLength( |
396 const base::CommandLine& command_line, | 401 const base::CommandLine& command_line, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 bool is_spdy_disabled_by_policy_; | 478 bool is_spdy_disabled_by_policy_; |
474 | 479 |
475 const base::TimeTicks creation_time_; | 480 const base::TimeTicks creation_time_; |
476 | 481 |
477 base::WeakPtrFactory<IOThread> weak_factory_; | 482 base::WeakPtrFactory<IOThread> weak_factory_; |
478 | 483 |
479 DISALLOW_COPY_AND_ASSIGN(IOThread); | 484 DISALLOW_COPY_AND_ASSIGN(IOThread); |
480 }; | 485 }; |
481 | 486 |
482 #endif // CHROME_BROWSER_IO_THREAD_H_ | 487 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |