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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 net::NextProtoVector next_protos; | 178 net::NextProtoVector next_protos; |
179 Optional<string> trusted_spdy_proxy; | 179 Optional<string> trusted_spdy_proxy; |
180 Optional<bool> force_spdy_over_ssl; | 180 Optional<bool> force_spdy_over_ssl; |
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; | |
189 Optional<bool> enable_quic_port_selection; | 188 Optional<bool> enable_quic_port_selection; |
190 Optional<bool> quic_always_require_handshake_confirmation; | 189 Optional<bool> quic_always_require_handshake_confirmation; |
191 Optional<bool> quic_disable_connection_pooling; | 190 Optional<bool> quic_disable_connection_pooling; |
192 Optional<size_t> quic_max_packet_length; | 191 Optional<size_t> quic_max_packet_length; |
193 net::QuicTagVector quic_connection_options; | 192 net::QuicTagVector quic_connection_options; |
194 Optional<std::string> quic_user_agent_id; | 193 Optional<std::string> quic_user_agent_id; |
195 Optional<net::QuicVersionVector> quic_supported_versions; | 194 Optional<net::QuicVersionVector> quic_supported_versions; |
196 Optional<net::HostPortPair> origin_to_force_quic_on; | 195 Optional<net::HostPortPair> origin_to_force_quic_on; |
197 bool enable_user_alternate_protocol_ports; | 196 bool enable_user_alternate_protocol_ports; |
198 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 197 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 static bool ShouldEnableQuicPortSelection( | 345 static bool ShouldEnableQuicPortSelection( |
347 const base::CommandLine& command_line); | 346 const base::CommandLine& command_line); |
348 | 347 |
349 // Returns true if QUIC packet pacing should be negotiated during the | 348 // Returns true if QUIC packet pacing should be negotiated during the |
350 // QUIC handshake. | 349 // QUIC handshake. |
351 static bool ShouldEnableQuicPacing( | 350 static bool ShouldEnableQuicPacing( |
352 const base::CommandLine& command_line, | 351 const base::CommandLine& command_line, |
353 base::StringPiece quic_trial_group, | 352 base::StringPiece quic_trial_group, |
354 const VariationParameters& quic_trial_params); | 353 const VariationParameters& quic_trial_params); |
355 | 354 |
356 // Returns true if QUIC time-base loss detection should be negotiated during | |
357 // the QUIC handshake. | |
358 static bool ShouldEnableQuicTimeBasedLossDetection( | |
359 const base::CommandLine& command_line, | |
360 base::StringPiece quic_trial_group, | |
361 const VariationParameters& quic_trial_params); | |
362 | |
363 // Returns true if QUIC should always require handshake confirmation during | 355 // Returns true if QUIC should always require handshake confirmation during |
364 // the QUIC handshake. | 356 // the QUIC handshake. |
365 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( | 357 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( |
366 const VariationParameters& quic_trial_params); | 358 const VariationParameters& quic_trial_params); |
367 | 359 |
368 // Returns true if QUIC should disable connection pooling. | 360 // Returns true if QUIC should disable connection pooling. |
369 static bool ShouldQuicDisableConnectionPooling( | 361 static bool ShouldQuicDisableConnectionPooling( |
370 const VariationParameters& quic_trial_params); | 362 const VariationParameters& quic_trial_params); |
371 | 363 |
372 // Returns the maximum length for QUIC packets, based on any flags in | 364 // Returns the maximum length for QUIC packets, based on any flags in |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 bool is_spdy_disabled_by_policy_; | 451 bool is_spdy_disabled_by_policy_; |
460 | 452 |
461 const base::TimeTicks creation_time_; | 453 const base::TimeTicks creation_time_; |
462 | 454 |
463 base::WeakPtrFactory<IOThread> weak_factory_; | 455 base::WeakPtrFactory<IOThread> weak_factory_; |
464 | 456 |
465 DISALLOW_COPY_AND_ASSIGN(IOThread); | 457 DISALLOW_COPY_AND_ASSIGN(IOThread); |
466 }; | 458 }; |
467 | 459 |
468 #endif // CHROME_BROWSER_IO_THREAD_H_ | 460 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |