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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 Optional<bool> force_spdy_always; | 181 Optional<bool> force_spdy_always; |
182 std::set<net::HostPortPair> forced_spdy_exclusions; | 182 std::set<net::HostPortPair> forced_spdy_exclusions; |
183 Optional<bool> use_alternate_protocols; | 183 Optional<bool> use_alternate_protocols; |
184 Optional<double> alternate_protocol_probability_threshold; | 184 Optional<double> alternate_protocol_probability_threshold; |
185 Optional<bool> enable_websocket_over_spdy; | 185 Optional<bool> enable_websocket_over_spdy; |
186 | 186 |
187 Optional<bool> enable_quic; | 187 Optional<bool> enable_quic; |
188 Optional<bool> enable_quic_time_based_loss_detection; | 188 Optional<bool> enable_quic_time_based_loss_detection; |
189 Optional<bool> enable_quic_port_selection; | 189 Optional<bool> enable_quic_port_selection; |
190 Optional<bool> quic_always_require_handshake_confirmation; | 190 Optional<bool> quic_always_require_handshake_confirmation; |
| 191 Optional<bool> quic_disable_connection_pooling; |
191 Optional<size_t> quic_max_packet_length; | 192 Optional<size_t> quic_max_packet_length; |
192 net::QuicTagVector quic_connection_options; | 193 net::QuicTagVector quic_connection_options; |
193 Optional<std::string> quic_user_agent_id; | 194 Optional<std::string> quic_user_agent_id; |
194 Optional<net::QuicVersionVector> quic_supported_versions; | 195 Optional<net::QuicVersionVector> quic_supported_versions; |
195 Optional<net::HostPortPair> origin_to_force_quic_on; | 196 Optional<net::HostPortPair> origin_to_force_quic_on; |
196 bool enable_user_alternate_protocol_ports; | 197 bool enable_user_alternate_protocol_ports; |
197 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 198 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
198 // main frame load fails with a DNS error in order to provide more useful | 199 // main frame load fails with a DNS error in order to provide more useful |
199 // information to the renderer so it can show a more specific error page. | 200 // information to the renderer so it can show a more specific error page. |
200 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 201 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 static bool ShouldEnableQuicTimeBasedLossDetection( | 352 static bool ShouldEnableQuicTimeBasedLossDetection( |
352 const base::CommandLine& command_line, | 353 const base::CommandLine& command_line, |
353 base::StringPiece quic_trial_group, | 354 base::StringPiece quic_trial_group, |
354 const VariationParameters& quic_trial_params); | 355 const VariationParameters& quic_trial_params); |
355 | 356 |
356 // Returns true if QUIC should always require handshake confirmation during | 357 // Returns true if QUIC should always require handshake confirmation during |
357 // the QUIC handshake. | 358 // the QUIC handshake. |
358 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( | 359 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( |
359 const VariationParameters& quic_trial_params); | 360 const VariationParameters& quic_trial_params); |
360 | 361 |
| 362 // Returns true if QUIC should disable connection pooling. |
| 363 static bool ShouldQuicDisableConnectionPooling( |
| 364 const VariationParameters& quic_trial_params); |
| 365 |
361 // Returns the maximum length for QUIC packets, based on any flags in | 366 // Returns the maximum length for QUIC packets, based on any flags in |
362 // |command_line| or the field trial. Returns 0 if there is an error | 367 // |command_line| or the field trial. Returns 0 if there is an error |
363 // parsing any of the options, or if the default value should be used. | 368 // parsing any of the options, or if the default value should be used. |
364 static size_t GetQuicMaxPacketLength( | 369 static size_t GetQuicMaxPacketLength( |
365 const base::CommandLine& command_line, | 370 const base::CommandLine& command_line, |
366 base::StringPiece quic_trial_group, | 371 base::StringPiece quic_trial_group, |
367 const VariationParameters& quic_trial_params); | 372 const VariationParameters& quic_trial_params); |
368 | 373 |
369 // Returns the QUIC versions specified by any flags in |command_line| | 374 // Returns the QUIC versions specified by any flags in |command_line| |
370 // or |quic_trial_params|. | 375 // or |quic_trial_params|. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 bool is_spdy_disabled_by_policy_; | 453 bool is_spdy_disabled_by_policy_; |
449 | 454 |
450 base::WeakPtrFactory<IOThread> weak_factory_; | 455 base::WeakPtrFactory<IOThread> weak_factory_; |
451 | 456 |
452 const base::TimeTicks creation_time_; | 457 const base::TimeTicks creation_time_; |
453 | 458 |
454 DISALLOW_COPY_AND_ASSIGN(IOThread); | 459 DISALLOW_COPY_AND_ASSIGN(IOThread); |
455 }; | 460 }; |
456 | 461 |
457 #endif // CHROME_BROWSER_IO_THREAD_H_ | 462 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |