| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 Optional<bool> enable_spdy_compression; | 182 Optional<bool> enable_spdy_compression; |
| 183 Optional<bool> enable_spdy_ping_based_connection_checking; | 183 Optional<bool> enable_spdy_ping_based_connection_checking; |
| 184 Optional<net::NextProto> spdy_default_protocol; | 184 Optional<net::NextProto> spdy_default_protocol; |
| 185 net::NextProtoVector next_protos; | 185 net::NextProtoVector next_protos; |
| 186 Optional<std::string> trusted_spdy_proxy; | 186 Optional<std::string> trusted_spdy_proxy; |
| 187 std::set<net::HostPortPair> forced_spdy_exclusions; | 187 std::set<net::HostPortPair> forced_spdy_exclusions; |
| 188 Optional<bool> use_alternative_services; | 188 Optional<bool> use_alternative_services; |
| 189 Optional<double> alternative_service_probability_threshold; | 189 Optional<double> alternative_service_probability_threshold; |
| 190 | 190 |
| 191 Optional<bool> enable_quic; | 191 Optional<bool> enable_quic; |
| 192 Optional<bool> enable_insecure_quic; | |
| 193 Optional<bool> enable_quic_for_proxies; | 192 Optional<bool> enable_quic_for_proxies; |
| 194 Optional<bool> enable_quic_port_selection; | 193 Optional<bool> enable_quic_port_selection; |
| 195 Optional<bool> quic_always_require_handshake_confirmation; | 194 Optional<bool> quic_always_require_handshake_confirmation; |
| 196 Optional<bool> quic_disable_connection_pooling; | 195 Optional<bool> quic_disable_connection_pooling; |
| 197 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 196 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
| 198 Optional<bool> quic_enable_connection_racing; | 197 Optional<bool> quic_enable_connection_racing; |
| 199 Optional<bool> quic_enable_non_blocking_io; | 198 Optional<bool> quic_enable_non_blocking_io; |
| 200 Optional<bool> quic_disable_disk_cache; | 199 Optional<bool> quic_disable_disk_cache; |
| 201 Optional<bool> quic_prefer_aes; | 200 Optional<bool> quic_prefer_aes; |
| 202 Optional<int> quic_max_number_of_lossy_connections; | 201 Optional<int> quic_max_number_of_lossy_connections; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 base::StringPiece quic_trial_group, | 337 base::StringPiece quic_trial_group, |
| 339 bool quic_allowed_by_policy); | 338 bool quic_allowed_by_policy); |
| 340 | 339 |
| 341 // Returns true if QUIC should be enabled for proxies, either as a result | 340 // Returns true if QUIC should be enabled for proxies, either as a result |
| 342 // of a field trial or a command line flag. | 341 // of a field trial or a command line flag. |
| 343 static bool ShouldEnableQuicForProxies( | 342 static bool ShouldEnableQuicForProxies( |
| 344 const base::CommandLine& command_line, | 343 const base::CommandLine& command_line, |
| 345 base::StringPiece quic_trial_group, | 344 base::StringPiece quic_trial_group, |
| 346 bool quic_allowed_by_policy); | 345 bool quic_allowed_by_policy); |
| 347 | 346 |
| 348 // Returns true if QUIC should be enabled for http:// URLs, as a result | |
| 349 // of a field trial or command line flag. | |
| 350 static bool ShouldEnableInsecureQuic( | |
| 351 const base::CommandLine& command_line, | |
| 352 const VariationParameters& quic_trial_params); | |
| 353 | |
| 354 // Returns true if the selection of the ephemeral port in bind() should be | 347 // Returns true if the selection of the ephemeral port in bind() should be |
| 355 // performed by Chromium, and false if the OS should select the port. The OS | 348 // performed by Chromium, and false if the OS should select the port. The OS |
| 356 // option is used to prevent Windows from posting a security security warning | 349 // option is used to prevent Windows from posting a security security warning |
| 357 // dialog. | 350 // dialog. |
| 358 static bool ShouldEnableQuicPortSelection( | 351 static bool ShouldEnableQuicPortSelection( |
| 359 const base::CommandLine& command_line); | 352 const base::CommandLine& command_line); |
| 360 | 353 |
| 361 // Returns true if QUIC should always require handshake confirmation during | 354 // Returns true if QUIC should always require handshake confirmation during |
| 362 // the QUIC handshake. | 355 // the QUIC handshake. |
| 363 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( | 356 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 external_data_use_observer_; | 514 external_data_use_observer_; |
| 522 | 515 |
| 523 const base::TimeTicks creation_time_; | 516 const base::TimeTicks creation_time_; |
| 524 | 517 |
| 525 base::WeakPtrFactory<IOThread> weak_factory_; | 518 base::WeakPtrFactory<IOThread> weak_factory_; |
| 526 | 519 |
| 527 DISALLOW_COPY_AND_ASSIGN(IOThread); | 520 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 528 }; | 521 }; |
| 529 | 522 |
| 530 #endif // CHROME_BROWSER_IO_THREAD_H_ | 523 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |