Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Side by Side Diff: chrome/browser/io_thread.h

Issue 1137073003: Add a new disable_insecure_quic finch parameter to disable insecure QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 disabled for http:// URLs, as a result
338 // of a field trial.
339 static bool ShouldDisableInsecureQuic(
340 const VariationParameters& quic_trial_params);
341
336 // Returns true if the selection of the ephemeral port in bind() should be 342 // 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 343 // 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 344 // option is used to prevent Windows from posting a security security warning
339 // dialog. 345 // dialog.
340 static bool ShouldEnableQuicPortSelection( 346 static bool ShouldEnableQuicPortSelection(
341 const base::CommandLine& command_line); 347 const base::CommandLine& command_line);
342 348
343 // Returns true if QUIC packet pacing should be negotiated during the 349 // Returns true if QUIC packet pacing should be negotiated during the
344 // QUIC handshake. 350 // QUIC handshake.
345 static bool ShouldEnableQuicPacing( 351 static bool ShouldEnableQuicPacing(
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 bool is_quic_allowed_by_policy_; 484 bool is_quic_allowed_by_policy_;
479 485
480 const base::TimeTicks creation_time_; 486 const base::TimeTicks creation_time_;
481 487
482 base::WeakPtrFactory<IOThread> weak_factory_; 488 base::WeakPtrFactory<IOThread> weak_factory_;
483 489
484 DISALLOW_COPY_AND_ASSIGN(IOThread); 490 DISALLOW_COPY_AND_ASSIGN(IOThread);
485 }; 491 };
486 492
487 #endif // CHROME_BROWSER_IO_THREAD_H_ 493 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698