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

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

Issue 1393713003: Remove insecure QUIC support from Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 Optional<bool> enable_spdy_compression; 182 Optional<bool> enable_spdy_compression;
183 Optional<bool> enable_spdy_ping_based_connection_checking; 183 Optional<bool> enable_spdy_ping_based_connection_checking;
184 Optional<net::NextProto> spdy_default_protocol; 184 Optional<net::NextProto> spdy_default_protocol;
185 net::NextProtoVector next_protos; 185 net::NextProtoVector next_protos;
186 Optional<std::string> trusted_spdy_proxy; 186 Optional<std::string> trusted_spdy_proxy;
187 std::set<net::HostPortPair> forced_spdy_exclusions; 187 std::set<net::HostPortPair> forced_spdy_exclusions;
188 Optional<bool> use_alternative_services; 188 Optional<bool> use_alternative_services;
189 Optional<double> alternative_service_probability_threshold; 189 Optional<double> alternative_service_probability_threshold;
190 190
191 Optional<bool> enable_quic; 191 Optional<bool> enable_quic;
192 Optional<bool> enable_insecure_quic;
193 Optional<bool> enable_quic_for_proxies; 192 Optional<bool> enable_quic_for_proxies;
194 Optional<bool> enable_quic_port_selection; 193 Optional<bool> enable_quic_port_selection;
195 Optional<bool> quic_always_require_handshake_confirmation; 194 Optional<bool> quic_always_require_handshake_confirmation;
196 Optional<bool> quic_disable_connection_pooling; 195 Optional<bool> quic_disable_connection_pooling;
197 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 196 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
198 Optional<bool> quic_enable_connection_racing; 197 Optional<bool> quic_enable_connection_racing;
199 Optional<bool> quic_enable_non_blocking_io; 198 Optional<bool> quic_enable_non_blocking_io;
200 Optional<bool> quic_disable_disk_cache; 199 Optional<bool> quic_disable_disk_cache;
201 Optional<bool> quic_prefer_aes; 200 Optional<bool> quic_prefer_aes;
202 Optional<int> quic_max_number_of_lossy_connections; 201 Optional<int> quic_max_number_of_lossy_connections;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 base::StringPiece quic_trial_group, 337 base::StringPiece quic_trial_group,
339 bool quic_allowed_by_policy); 338 bool quic_allowed_by_policy);
340 339
341 // Returns true if QUIC should be enabled for proxies, either as a result 340 // Returns true if QUIC should be enabled for proxies, either as a result
342 // of a field trial or a command line flag. 341 // of a field trial or a command line flag.
343 static bool ShouldEnableQuicForProxies( 342 static bool ShouldEnableQuicForProxies(
344 const base::CommandLine& command_line, 343 const base::CommandLine& command_line,
345 base::StringPiece quic_trial_group, 344 base::StringPiece quic_trial_group,
346 bool quic_allowed_by_policy); 345 bool quic_allowed_by_policy);
347 346
348 // Returns true if QUIC should be enabled for http:// URLs, as a result
349 // of a field trial or command line flag.
350 static bool ShouldEnableInsecureQuic(
351 const base::CommandLine& command_line,
352 const VariationParameters& quic_trial_params);
353
354 // Returns true if the selection of the ephemeral port in bind() should be 347 // Returns true if the selection of the ephemeral port in bind() should be
355 // performed by Chromium, and false if the OS should select the port. The OS 348 // performed by Chromium, and false if the OS should select the port. The OS
356 // option is used to prevent Windows from posting a security security warning 349 // option is used to prevent Windows from posting a security security warning
357 // dialog. 350 // dialog.
358 static bool ShouldEnableQuicPortSelection( 351 static bool ShouldEnableQuicPortSelection(
359 const base::CommandLine& command_line); 352 const base::CommandLine& command_line);
360 353
361 // Returns true if QUIC should always require handshake confirmation during 354 // Returns true if QUIC should always require handshake confirmation during
362 // the QUIC handshake. 355 // the QUIC handshake.
363 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( 356 static bool ShouldQuicAlwaysRequireHandshakeConfirmation(
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 external_data_use_observer_; 514 external_data_use_observer_;
522 515
523 const base::TimeTicks creation_time_; 516 const base::TimeTicks creation_time_;
524 517
525 base::WeakPtrFactory<IOThread> weak_factory_; 518 base::WeakPtrFactory<IOThread> weak_factory_;
526 519
527 DISALLOW_COPY_AND_ASSIGN(IOThread); 520 DISALLOW_COPY_AND_ASSIGN(IOThread);
528 }; 521 };
529 522
530 #endif // CHROME_BROWSER_IO_THREAD_H_ 523 #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