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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 Optional<int> quic_max_number_of_lossy_connections; | 211 Optional<int> quic_max_number_of_lossy_connections; |
212 Optional<float> quic_packet_loss_threshold; | 212 Optional<float> quic_packet_loss_threshold; |
213 Optional<int> quic_socket_receive_buffer_size; | 213 Optional<int> quic_socket_receive_buffer_size; |
214 Optional<bool> quic_delay_tcp_race; | 214 Optional<bool> quic_delay_tcp_race; |
215 Optional<size_t> quic_max_packet_length; | 215 Optional<size_t> quic_max_packet_length; |
216 net::QuicTagVector quic_connection_options; | 216 net::QuicTagVector quic_connection_options; |
217 Optional<std::string> quic_user_agent_id; | 217 Optional<std::string> quic_user_agent_id; |
218 Optional<net::QuicVersionVector> quic_supported_versions; | 218 Optional<net::QuicVersionVector> quic_supported_versions; |
219 Optional<net::HostPortPair> origin_to_force_quic_on; | 219 Optional<net::HostPortPair> origin_to_force_quic_on; |
220 Optional<bool> quic_close_sessions_on_ip_change; | 220 Optional<bool> quic_close_sessions_on_ip_change; |
221 Optional<bool> quic_migrate_sessions_on_net_change; | |
Ryan Hamilton
2015/11/17 04:57:27
here and elsewhere, I think "net" => "network" sin
Jana
2015/11/18 04:31:41
Done.
| |
221 bool enable_user_alternate_protocol_ports; | 222 bool enable_user_alternate_protocol_ports; |
222 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 223 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
223 // main frame load fails with a DNS error in order to provide more useful | 224 // main frame load fails with a DNS error in order to provide more useful |
224 // information to the renderer so it can show a more specific error page. | 225 // information to the renderer so it can show a more specific error page. |
225 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 226 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
226 }; | 227 }; |
227 | 228 |
228 // |net_log| must either outlive the IOThread or be NULL. | 229 // |net_log| must either outlive the IOThread or be NULL. |
229 IOThread(PrefService* local_state, | 230 IOThread(PrefService* local_state, |
230 policy::PolicyService* policy_service, | 231 policy::PolicyService* policy_service, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
427 | 428 |
428 // Returns true if QUIC should delay TCP connection when QUIC works. | 429 // Returns true if QUIC should delay TCP connection when QUIC works. |
429 static bool ShouldQuicDelayTcpRace( | 430 static bool ShouldQuicDelayTcpRace( |
430 const VariationParameters& quic_trial_params); | 431 const VariationParameters& quic_trial_params); |
431 | 432 |
432 // Returns true if QUIC should close sessions when any of the client's | 433 // Returns true if QUIC should close sessions when any of the client's |
433 // IP addresses change. | 434 // IP addresses change. |
434 static bool ShouldQuicCloseSessionsOnIpChange( | 435 static bool ShouldQuicCloseSessionsOnIpChange( |
435 const VariationParameters& quic_trial_params); | 436 const VariationParameters& quic_trial_params); |
436 | 437 |
438 // Returns true if QUIC should migrate sessions when primary network | |
439 // changes. | |
440 static bool ShouldQuicMigrateSessionsOnNetChange( | |
441 const VariationParameters& quic_trial_params); | |
442 | |
437 // Returns the maximum length for QUIC packets, based on any flags in | 443 // Returns the maximum length for QUIC packets, based on any flags in |
438 // |command_line| or the field trial. Returns 0 if there is an error | 444 // |command_line| or the field trial. Returns 0 if there is an error |
439 // parsing any of the options, or if the default value should be used. | 445 // parsing any of the options, or if the default value should be used. |
440 static size_t GetQuicMaxPacketLength( | 446 static size_t GetQuicMaxPacketLength( |
441 const base::CommandLine& command_line, | 447 const base::CommandLine& command_line, |
442 const VariationParameters& quic_trial_params); | 448 const VariationParameters& quic_trial_params); |
443 | 449 |
444 // Returns the QUIC versions specified by any flags in |command_line| | 450 // Returns the QUIC versions specified by any flags in |command_line| |
445 // or |quic_trial_params|. | 451 // or |quic_trial_params|. |
446 static net::QuicVersion GetQuicVersion( | 452 static net::QuicVersion GetQuicVersion( |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
542 #endif // defined(OS_ANDROID) | 548 #endif // defined(OS_ANDROID) |
543 | 549 |
544 const base::TimeTicks creation_time_; | 550 const base::TimeTicks creation_time_; |
545 | 551 |
546 base::WeakPtrFactory<IOThread> weak_factory_; | 552 base::WeakPtrFactory<IOThread> weak_factory_; |
547 | 553 |
548 DISALLOW_COPY_AND_ASSIGN(IOThread); | 554 DISALLOW_COPY_AND_ASSIGN(IOThread); |
549 }; | 555 }; |
550 | 556 |
551 #endif // CHROME_BROWSER_IO_THREAD_H_ | 557 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |