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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 Optional<bool> enable_quic; | 182 Optional<bool> enable_quic; |
183 Optional<bool> disable_insecure_quic; | 183 Optional<bool> disable_insecure_quic; |
184 Optional<bool> enable_quic_for_proxies; | 184 Optional<bool> enable_quic_for_proxies; |
185 Optional<bool> enable_quic_port_selection; | 185 Optional<bool> enable_quic_port_selection; |
186 Optional<bool> quic_always_require_handshake_confirmation; | 186 Optional<bool> quic_always_require_handshake_confirmation; |
187 Optional<bool> quic_disable_connection_pooling; | 187 Optional<bool> quic_disable_connection_pooling; |
188 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 188 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
189 Optional<bool> quic_enable_connection_racing; | 189 Optional<bool> quic_enable_connection_racing; |
190 Optional<bool> quic_enable_non_blocking_io; | 190 Optional<bool> quic_enable_non_blocking_io; |
191 Optional<bool> quic_disable_disk_cache; | 191 Optional<bool> quic_disable_disk_cache; |
| 192 Optional<bool> quic_prefer_aes; |
192 Optional<int> quic_max_number_of_lossy_connections; | 193 Optional<int> quic_max_number_of_lossy_connections; |
193 Optional<float> quic_packet_loss_threshold; | 194 Optional<float> quic_packet_loss_threshold; |
194 Optional<int> quic_socket_receive_buffer_size; | 195 Optional<int> quic_socket_receive_buffer_size; |
195 Optional<size_t> quic_max_packet_length; | 196 Optional<size_t> quic_max_packet_length; |
196 net::QuicTagVector quic_connection_options; | 197 net::QuicTagVector quic_connection_options; |
197 Optional<std::string> quic_user_agent_id; | 198 Optional<std::string> quic_user_agent_id; |
198 Optional<net::QuicVersionVector> quic_supported_versions; | 199 Optional<net::QuicVersionVector> quic_supported_versions; |
199 Optional<net::HostPortPair> origin_to_force_quic_on; | 200 Optional<net::HostPortPair> origin_to_force_quic_on; |
200 bool enable_user_alternate_protocol_ports; | 201 bool enable_user_alternate_protocol_ports; |
201 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 202 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 369 |
369 // Returns true if QUIC's should use non-blocking IO. | 370 // Returns true if QUIC's should use non-blocking IO. |
370 static bool ShouldQuicEnableNonBlockingIO( | 371 static bool ShouldQuicEnableNonBlockingIO( |
371 const VariationParameters& quic_trial_params); | 372 const VariationParameters& quic_trial_params); |
372 | 373 |
373 // Returns true if QUIC shouldn't load QUIC server information from the disk | 374 // Returns true if QUIC shouldn't load QUIC server information from the disk |
374 // cache. | 375 // cache. |
375 static bool ShouldQuicDisableDiskCache( | 376 static bool ShouldQuicDisableDiskCache( |
376 const VariationParameters& quic_trial_params); | 377 const VariationParameters& quic_trial_params); |
377 | 378 |
| 379 // Returns true if QUIC should prefer AES-GCN even without hardware support. |
| 380 static bool ShouldQuicPreferAes(const VariationParameters& quic_trial_params); |
| 381 |
378 // Returns the maximum number of QUIC connections with high packet loss in a | 382 // Returns the maximum number of QUIC connections with high packet loss in a |
379 // row after which QUIC should be disabled. Returns 0 if the default value | 383 // row after which QUIC should be disabled. Returns 0 if the default value |
380 // should be used. | 384 // should be used. |
381 static int GetQuicMaxNumberOfLossyConnections( | 385 static int GetQuicMaxNumberOfLossyConnections( |
382 const VariationParameters& quic_trial_params); | 386 const VariationParameters& quic_trial_params); |
383 | 387 |
384 // Returns the packet loss rate in fraction after which a QUIC connection is | 388 // Returns the packet loss rate in fraction after which a QUIC connection is |
385 // closed and is considered as a lossy connection. Returns 0 if the default | 389 // closed and is considered as a lossy connection. Returns 0 if the default |
386 // value should be used. | 390 // value should be used. |
387 static float GetQuicPacketLossThreshold( | 391 static float GetQuicPacketLossThreshold( |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 bool is_quic_allowed_by_policy_; | 483 bool is_quic_allowed_by_policy_; |
480 | 484 |
481 const base::TimeTicks creation_time_; | 485 const base::TimeTicks creation_time_; |
482 | 486 |
483 base::WeakPtrFactory<IOThread> weak_factory_; | 487 base::WeakPtrFactory<IOThread> weak_factory_; |
484 | 488 |
485 DISALLOW_COPY_AND_ASSIGN(IOThread); | 489 DISALLOW_COPY_AND_ASSIGN(IOThread); |
486 }; | 490 }; |
487 | 491 |
488 #endif // CHROME_BROWSER_IO_THREAD_H_ | 492 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |