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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 Optional<bool> enable_spdy_compression; | 171 Optional<bool> enable_spdy_compression; |
172 Optional<bool> enable_spdy_ping_based_connection_checking; | 172 Optional<bool> enable_spdy_ping_based_connection_checking; |
173 Optional<net::NextProto> spdy_default_protocol; | 173 Optional<net::NextProto> spdy_default_protocol; |
174 net::NextProtoVector next_protos; | 174 net::NextProtoVector next_protos; |
175 Optional<std::string> trusted_spdy_proxy; | 175 Optional<std::string> trusted_spdy_proxy; |
176 std::set<net::HostPortPair> forced_spdy_exclusions; | 176 std::set<net::HostPortPair> forced_spdy_exclusions; |
177 Optional<bool> use_alternate_protocols; | 177 Optional<bool> use_alternate_protocols; |
178 Optional<double> alternative_service_probability_threshold; | 178 Optional<double> alternative_service_probability_threshold; |
179 | 179 |
180 Optional<bool> enable_quic; | 180 Optional<bool> enable_quic; |
181 Optional<bool> disable_insecure_quic; | |
181 Optional<bool> enable_quic_for_proxies; | 182 Optional<bool> enable_quic_for_proxies; |
182 Optional<bool> enable_quic_port_selection; | 183 Optional<bool> enable_quic_port_selection; |
183 Optional<bool> quic_always_require_handshake_confirmation; | 184 Optional<bool> quic_always_require_handshake_confirmation; |
184 Optional<bool> quic_disable_connection_pooling; | 185 Optional<bool> quic_disable_connection_pooling; |
185 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 186 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
186 Optional<bool> quic_enable_connection_racing; | 187 Optional<bool> quic_enable_connection_racing; |
187 Optional<bool> quic_enable_non_blocking_io; | 188 Optional<bool> quic_enable_non_blocking_io; |
188 Optional<bool> quic_disable_disk_cache; | 189 Optional<bool> quic_disable_disk_cache; |
189 Optional<int> quic_max_number_of_lossy_connections; | 190 Optional<int> quic_max_number_of_lossy_connections; |
190 Optional<float> quic_packet_loss_threshold; | 191 Optional<float> quic_packet_loss_threshold; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 base::StringPiece quic_trial_group, | 327 base::StringPiece quic_trial_group, |
327 bool quic_allowed_by_policy); | 328 bool quic_allowed_by_policy); |
328 | 329 |
329 // Returns true if QUIC should be enabled for proxies, either as a result | 330 // Returns true if QUIC should be enabled for proxies, either as a result |
330 // of a field trial or a command line flag. | 331 // of a field trial or a command line flag. |
331 static bool ShouldEnableQuicForProxies( | 332 static bool ShouldEnableQuicForProxies( |
332 const base::CommandLine& command_line, | 333 const base::CommandLine& command_line, |
333 base::StringPiece quic_trial_group, | 334 base::StringPiece quic_trial_group, |
334 bool quic_allowed_by_policy); | 335 bool quic_allowed_by_policy); |
335 | 336 |
337 // Returns true if QUIC should be enabled, as a result of a field trial. | |
ramant (doing other things)
2015/05/11 22:15:47
overly nit: if QUIC -> if QUIC for http (or if QU
Ryan Hamilton
2015/05/12 00:00:22
Done.
| |
338 static bool ShouldDisableInsecureQuic( | |
339 const VariationParameters& quic_trial_params); | |
340 | |
336 // Returns true if the selection of the ephemeral port in bind() should be | 341 // Returns true if the selection of the ephemeral port in bind() should be |
337 // performed by Chromium, and false if the OS should select the port. The OS | 342 // performed by Chromium, and false if the OS should select the port. The OS |
338 // option is used to prevent Windows from posting a security security warning | 343 // option is used to prevent Windows from posting a security security warning |
339 // dialog. | 344 // dialog. |
340 static bool ShouldEnableQuicPortSelection( | 345 static bool ShouldEnableQuicPortSelection( |
341 const base::CommandLine& command_line); | 346 const base::CommandLine& command_line); |
342 | 347 |
343 // Returns true if QUIC packet pacing should be negotiated during the | 348 // Returns true if QUIC packet pacing should be negotiated during the |
344 // QUIC handshake. | 349 // QUIC handshake. |
345 static bool ShouldEnableQuicPacing( | 350 static bool ShouldEnableQuicPacing( |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
478 bool is_quic_allowed_by_policy_; | 483 bool is_quic_allowed_by_policy_; |
479 | 484 |
480 const base::TimeTicks creation_time_; | 485 const base::TimeTicks creation_time_; |
481 | 486 |
482 base::WeakPtrFactory<IOThread> weak_factory_; | 487 base::WeakPtrFactory<IOThread> weak_factory_; |
483 | 488 |
484 DISALLOW_COPY_AND_ASSIGN(IOThread); | 489 DISALLOW_COPY_AND_ASSIGN(IOThread); |
485 }; | 490 }; |
486 | 491 |
487 #endif // CHROME_BROWSER_IO_THREAD_H_ | 492 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |