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

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: Cleanup 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') | net/quic/quic_end_to_end_unittest.cc » ('J')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 Optional<bool> enable_spdy_compression; 177 Optional<bool> enable_spdy_compression;
178 Optional<bool> enable_spdy_ping_based_connection_checking; 178 Optional<bool> enable_spdy_ping_based_connection_checking;
179 Optional<net::NextProto> spdy_default_protocol; 179 Optional<net::NextProto> spdy_default_protocol;
180 net::NextProtoVector next_protos; 180 net::NextProtoVector next_protos;
181 Optional<std::string> trusted_spdy_proxy; 181 Optional<std::string> trusted_spdy_proxy;
182 std::set<net::HostPortPair> forced_spdy_exclusions; 182 std::set<net::HostPortPair> forced_spdy_exclusions;
183 Optional<bool> use_alternative_services; 183 Optional<bool> use_alternative_services;
184 Optional<double> alternative_service_probability_threshold; 184 Optional<double> alternative_service_probability_threshold;
185 185
186 Optional<bool> enable_quic; 186 Optional<bool> enable_quic;
187 Optional<bool> enable_insecure_quic;
188 Optional<bool> enable_quic_for_proxies; 187 Optional<bool> enable_quic_for_proxies;
189 Optional<bool> enable_quic_port_selection; 188 Optional<bool> enable_quic_port_selection;
190 Optional<bool> quic_always_require_handshake_confirmation; 189 Optional<bool> quic_always_require_handshake_confirmation;
191 Optional<bool> quic_disable_connection_pooling; 190 Optional<bool> quic_disable_connection_pooling;
192 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 191 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
193 Optional<bool> quic_enable_connection_racing; 192 Optional<bool> quic_enable_connection_racing;
194 Optional<bool> quic_enable_non_blocking_io; 193 Optional<bool> quic_enable_non_blocking_io;
195 Optional<bool> quic_disable_disk_cache; 194 Optional<bool> quic_disable_disk_cache;
196 Optional<bool> quic_prefer_aes; 195 Optional<bool> quic_prefer_aes;
197 Optional<int> quic_max_number_of_lossy_connections; 196 Optional<int> quic_max_number_of_lossy_connections;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 base::StringPiece quic_trial_group, 330 base::StringPiece quic_trial_group,
332 bool quic_allowed_by_policy); 331 bool quic_allowed_by_policy);
333 332
334 // Returns true if QUIC should be enabled for proxies, either as a result 333 // Returns true if QUIC should be enabled for proxies, either as a result
335 // of a field trial or a command line flag. 334 // of a field trial or a command line flag.
336 static bool ShouldEnableQuicForProxies( 335 static bool ShouldEnableQuicForProxies(
337 const base::CommandLine& command_line, 336 const base::CommandLine& command_line,
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 http:// URLs, as a result
342 // of a field trial or command line flag.
343 static bool ShouldEnableInsecureQuic(
344 const base::CommandLine& command_line,
345 const VariationParameters& quic_trial_params);
346
347 // Returns true if the selection of the ephemeral port in bind() should be 340 // Returns true if the selection of the ephemeral port in bind() should be
348 // performed by Chromium, and false if the OS should select the port. The OS 341 // performed by Chromium, and false if the OS should select the port. The OS
349 // option is used to prevent Windows from posting a security security warning 342 // option is used to prevent Windows from posting a security security warning
350 // dialog. 343 // dialog.
351 static bool ShouldEnableQuicPortSelection( 344 static bool ShouldEnableQuicPortSelection(
352 const base::CommandLine& command_line); 345 const base::CommandLine& command_line);
353 346
354 // Returns true if QUIC should always require handshake confirmation during 347 // Returns true if QUIC should always require handshake confirmation during
355 // the QUIC handshake. 348 // the QUIC handshake.
356 static bool ShouldQuicAlwaysRequireHandshakeConfirmation( 349 static bool ShouldQuicAlwaysRequireHandshakeConfirmation(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 bool is_quic_allowed_by_policy_; 500 bool is_quic_allowed_by_policy_;
508 501
509 const base::TimeTicks creation_time_; 502 const base::TimeTicks creation_time_;
510 503
511 base::WeakPtrFactory<IOThread> weak_factory_; 504 base::WeakPtrFactory<IOThread> weak_factory_;
512 505
513 DISALLOW_COPY_AND_ASSIGN(IOThread); 506 DISALLOW_COPY_AND_ASSIGN(IOThread);
514 }; 507 };
515 508
516 #endif // CHROME_BROWSER_IO_THREAD_H_ 509 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/quic/quic_end_to_end_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698