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

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: Addressed all comments. Added new field in IOThread globals 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') | net/http/http_network_session.h » ('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_for_proxies;
186 Optional<bool> enable_quic_for_data_reduction_proxy;
185 Optional<bool> enable_quic_port_selection; 187 Optional<bool> enable_quic_port_selection;
186 Optional<bool> quic_always_require_handshake_confirmation; 188 Optional<bool> quic_always_require_handshake_confirmation;
187 Optional<bool> quic_disable_connection_pooling; 189 Optional<bool> quic_disable_connection_pooling;
188 Optional<int> quic_load_server_info_timeout_ms; 190 Optional<int> quic_load_server_info_timeout_ms;
189 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 191 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
190 Optional<bool> quic_enable_truncated_connection_ids; 192 Optional<bool> quic_enable_truncated_connection_ids;
191 Optional<bool> quic_enable_connection_racing; 193 Optional<bool> quic_enable_connection_racing;
192 Optional<size_t> quic_max_packet_length; 194 Optional<size_t> quic_max_packet_length;
193 net::QuicTagVector quic_connection_options; 195 net::QuicTagVector quic_connection_options;
194 Optional<std::string> quic_user_agent_id; 196 Optional<std::string> quic_user_agent_id;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 base::StringPiece quic_trial_group, 325 base::StringPiece quic_trial_group,
324 const VariationParameters& quic_trial_params, 326 const VariationParameters& quic_trial_params,
325 Globals* globals); 327 Globals* globals);
326 328
327 // Returns true if QUIC should be enabled, either as a result 329 // Returns true if QUIC should be enabled, either as a result
328 // of a field trial or a command line flag. 330 // of a field trial or a command line flag.
329 static bool ShouldEnableQuic( 331 static bool ShouldEnableQuic(
330 const base::CommandLine& command_line, 332 const base::CommandLine& command_line,
331 base::StringPiece quic_trial_group); 333 base::StringPiece quic_trial_group);
332 334
335 // Returns true if QUIC should be enabled for proxies, either as a result
336 // of a field trial or a command line flag.
337 static bool ShouldEnableQuicForProxies(
338 const base::CommandLine& command_line,
339 base::StringPiece quic_trial_group);
340
341 // Returns true if QUIC should be enabled for data reduction proxy, either as
342 // a result of a field trial or a command line flag.
343 static bool ShouldEnableQuicForDataReductionProxy(
344 const base::CommandLine& command_line,
345 base::StringPiece quic_trial_group);
mmenke 2015/02/13 20:19:52 These can now be removed from the header and moved
346
333 // 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
334 // 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
335 // 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
336 // dialog. 350 // dialog.
337 static bool ShouldEnableQuicPortSelection( 351 static bool ShouldEnableQuicPortSelection(
338 const base::CommandLine& command_line); 352 const base::CommandLine& command_line);
339 353
340 // Returns true if QUIC packet pacing should be negotiated during the 354 // Returns true if QUIC packet pacing should be negotiated during the
341 // QUIC handshake. 355 // QUIC handshake.
342 static bool ShouldEnableQuicPacing( 356 static bool ShouldEnableQuicPacing(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 bool is_spdy_disabled_by_policy_; 470 bool is_spdy_disabled_by_policy_;
457 471
458 const base::TimeTicks creation_time_; 472 const base::TimeTicks creation_time_;
459 473
460 base::WeakPtrFactory<IOThread> weak_factory_; 474 base::WeakPtrFactory<IOThread> weak_factory_;
461 475
462 DISALLOW_COPY_AND_ASSIGN(IOThread); 476 DISALLOW_COPY_AND_ASSIGN(IOThread);
463 }; 477 };
464 478
465 #endif // CHROME_BROWSER_IO_THREAD_H_ 479 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/http/http_network_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698