| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 Optional<bool> use_alternate_protocols; | 187 Optional<bool> use_alternate_protocols; |
| 188 Optional<double> alternate_protocol_probability_threshold; | 188 Optional<double> alternate_protocol_probability_threshold; |
| 189 | 189 |
| 190 Optional<bool> enable_quic; | 190 Optional<bool> enable_quic; |
| 191 Optional<bool> enable_quic_port_selection; | 191 Optional<bool> enable_quic_port_selection; |
| 192 Optional<bool> quic_always_require_handshake_confirmation; | 192 Optional<bool> quic_always_require_handshake_confirmation; |
| 193 Optional<bool> quic_disable_connection_pooling; | 193 Optional<bool> quic_disable_connection_pooling; |
| 194 Optional<int> quic_load_server_info_timeout_ms; | 194 Optional<int> quic_load_server_info_timeout_ms; |
| 195 Optional<bool> quic_disable_loading_server_info_for_new_servers; | 195 Optional<bool> quic_disable_loading_server_info_for_new_servers; |
| 196 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 196 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
| 197 Optional<bool> quic_disable_truncated_connection_ids; |
| 197 Optional<size_t> quic_max_packet_length; | 198 Optional<size_t> quic_max_packet_length; |
| 198 net::QuicTagVector quic_connection_options; | 199 net::QuicTagVector quic_connection_options; |
| 199 Optional<std::string> quic_user_agent_id; | 200 Optional<std::string> quic_user_agent_id; |
| 200 Optional<net::QuicVersionVector> quic_supported_versions; | 201 Optional<net::QuicVersionVector> quic_supported_versions; |
| 201 Optional<net::HostPortPair> origin_to_force_quic_on; | 202 Optional<net::HostPortPair> origin_to_force_quic_on; |
| 202 bool enable_user_alternate_protocol_ports; | 203 bool enable_user_alternate_protocol_ports; |
| 203 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 204 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
| 204 // main frame load fails with a DNS error in order to provide more useful | 205 // main frame load fails with a DNS error in order to provide more useful |
| 205 // information to the renderer so it can show a more specific error page. | 206 // information to the renderer so it can show a more specific error page. |
| 206 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 207 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // Returns true if QUIC sever information shouldn't be loaded for new servers. | 377 // Returns true if QUIC sever information shouldn't be loaded for new servers. |
| 377 static bool ShouldDisableLoadingServerInfoForNewServers( | 378 static bool ShouldDisableLoadingServerInfoForNewServers( |
| 378 const VariationParameters& quic_trial_params); | 379 const VariationParameters& quic_trial_params); |
| 379 | 380 |
| 380 // Returns the ratio of time to load QUIC sever information from disk cache to | 381 // Returns the ratio of time to load QUIC sever information from disk cache to |
| 381 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing | 382 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing |
| 382 // the field trial params, or if the default value should be used. | 383 // the field trial params, or if the default value should be used. |
| 383 static float GetQuicLoadServerInfoTimeoutSrttMultiplier( | 384 static float GetQuicLoadServerInfoTimeoutSrttMultiplier( |
| 384 const VariationParameters& quic_trial_params); | 385 const VariationParameters& quic_trial_params); |
| 385 | 386 |
| 387 // Returns true if FLAGS_allow_truncated_connection_ids_for_quic should be |
| 388 // disabled. |
| 389 static bool ShouldDisableTruncatedConnectionIds( |
| 390 const VariationParameters& quic_trial_params); |
| 391 |
| 386 // Returns the maximum length for QUIC packets, based on any flags in | 392 // Returns the maximum length for QUIC packets, based on any flags in |
| 387 // |command_line| or the field trial. Returns 0 if there is an error | 393 // |command_line| or the field trial. Returns 0 if there is an error |
| 388 // parsing any of the options, or if the default value should be used. | 394 // parsing any of the options, or if the default value should be used. |
| 389 static size_t GetQuicMaxPacketLength( | 395 static size_t GetQuicMaxPacketLength( |
| 390 const base::CommandLine& command_line, | 396 const base::CommandLine& command_line, |
| 391 base::StringPiece quic_trial_group, | 397 base::StringPiece quic_trial_group, |
| 392 const VariationParameters& quic_trial_params); | 398 const VariationParameters& quic_trial_params); |
| 393 | 399 |
| 394 // Returns the QUIC versions specified by any flags in |command_line| | 400 // Returns the QUIC versions specified by any flags in |command_line| |
| 395 // or |quic_trial_params|. | 401 // or |quic_trial_params|. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 bool is_spdy_disabled_by_policy_; | 474 bool is_spdy_disabled_by_policy_; |
| 469 | 475 |
| 470 const base::TimeTicks creation_time_; | 476 const base::TimeTicks creation_time_; |
| 471 | 477 |
| 472 base::WeakPtrFactory<IOThread> weak_factory_; | 478 base::WeakPtrFactory<IOThread> weak_factory_; |
| 473 | 479 |
| 474 DISALLOW_COPY_AND_ASSIGN(IOThread); | 480 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 475 }; | 481 }; |
| 476 | 482 |
| 477 #endif // CHROME_BROWSER_IO_THREAD_H_ | 483 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |