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

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

Issue 903213003: Enable QUIC for proxies based on Finch config and command line switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Followed on what we discussed. Created 5 years, 10 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') | chrome/browser/io_thread.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 Optional<net::NextProto> spdy_default_protocol; 175 Optional<net::NextProto> spdy_default_protocol;
176 net::NextProtoVector next_protos; 176 net::NextProtoVector next_protos;
177 Optional<std::string> trusted_spdy_proxy; 177 Optional<std::string> trusted_spdy_proxy;
178 Optional<bool> force_spdy_over_ssl; 178 Optional<bool> force_spdy_over_ssl;
179 Optional<bool> force_spdy_always; 179 Optional<bool> force_spdy_always;
180 std::set<net::HostPortPair> forced_spdy_exclusions; 180 std::set<net::HostPortPair> forced_spdy_exclusions;
181 Optional<bool> use_alternate_protocols; 181 Optional<bool> use_alternate_protocols;
182 Optional<double> alternate_protocol_probability_threshold; 182 Optional<double> alternate_protocol_probability_threshold;
183 183
184 Optional<bool> enable_quic; 184 Optional<bool> enable_quic;
185 Optional<bool> enable_quic_proxy;
Ryan Hamilton 2015/02/08 16:56:36 I think you mean enable_quic_for_proxies, or some
tbansal1 2015/02/10 19:46:04 Done.
185 Optional<bool> enable_quic_port_selection; 186 Optional<bool> enable_quic_port_selection;
186 Optional<bool> quic_always_require_handshake_confirmation; 187 Optional<bool> quic_always_require_handshake_confirmation;
187 Optional<bool> quic_disable_connection_pooling; 188 Optional<bool> quic_disable_connection_pooling;
188 Optional<int> quic_load_server_info_timeout_ms; 189 Optional<int> quic_load_server_info_timeout_ms;
189 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 190 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
190 Optional<bool> quic_enable_truncated_connection_ids; 191 Optional<bool> quic_enable_truncated_connection_ids;
191 Optional<size_t> quic_max_packet_length; 192 Optional<size_t> quic_max_packet_length;
192 net::QuicTagVector quic_connection_options; 193 net::QuicTagVector quic_connection_options;
193 Optional<std::string> quic_user_agent_id; 194 Optional<std::string> quic_user_agent_id;
194 Optional<net::QuicVersionVector> quic_supported_versions; 195 Optional<net::QuicVersionVector> quic_supported_versions;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 base::StringPiece quic_trial_group, 323 base::StringPiece quic_trial_group,
323 const VariationParameters& quic_trial_params, 324 const VariationParameters& quic_trial_params,
324 Globals* globals); 325 Globals* globals);
325 326
326 // Returns true if QUIC should be enabled, either as a result 327 // Returns true if QUIC should be enabled, either as a result
327 // of a field trial or a command line flag. 328 // of a field trial or a command line flag.
328 static bool ShouldEnableQuic( 329 static bool ShouldEnableQuic(
329 const base::CommandLine& command_line, 330 const base::CommandLine& command_line,
330 base::StringPiece quic_trial_group); 331 base::StringPiece quic_trial_group);
331 332
333 // Returns true if QUIC should be enabled for proxies.
bengr 2015/02/07 01:48:48 , either as a result of a field trial or a command
tbansal1 2015/02/10 19:46:04 Done.
334 static bool ShouldEnableQuicForProxies(
335 const base::CommandLine& command_line,
336 base::StringPiece quic_trial_group);
bengr 2015/02/07 01:48:48 quic_proxy_trial_group?
tbansal1 2015/02/10 19:46:04 Done.
337
332 // Returns true if the selection of the ephemeral port in bind() should be 338 // Returns true if the selection of the ephemeral port in bind() should be
333 // performed by Chromium, and false if the OS should select the port. The OS 339 // performed by Chromium, and false if the OS should select the port. The OS
334 // option is used to prevent Windows from posting a security security warning 340 // option is used to prevent Windows from posting a security security warning
335 // dialog. 341 // dialog.
336 static bool ShouldEnableQuicPortSelection( 342 static bool ShouldEnableQuicPortSelection(
337 const base::CommandLine& command_line); 343 const base::CommandLine& command_line);
338 344
339 // Returns true if QUIC packet pacing should be negotiated during the 345 // Returns true if QUIC packet pacing should be negotiated during the
340 // QUIC handshake. 346 // QUIC handshake.
341 static bool ShouldEnableQuicPacing( 347 static bool ShouldEnableQuicPacing(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 bool is_spdy_disabled_by_policy_; 457 bool is_spdy_disabled_by_policy_;
452 458
453 const base::TimeTicks creation_time_; 459 const base::TimeTicks creation_time_;
454 460
455 base::WeakPtrFactory<IOThread> weak_factory_; 461 base::WeakPtrFactory<IOThread> weak_factory_;
456 462
457 DISALLOW_COPY_AND_ASSIGN(IOThread); 463 DISALLOW_COPY_AND_ASSIGN(IOThread);
458 }; 464 };
459 465
460 #endif // CHROME_BROWSER_IO_THREAD_H_ 466 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698