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

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

Issue 1603203002: Add a finch trial param to disable QUIC when connection times out with open streams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: param name change Created 4 years, 11 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 Optional<std::string> trusted_spdy_proxy; 212 Optional<std::string> trusted_spdy_proxy;
213 std::set<net::HostPortPair> forced_spdy_exclusions; 213 std::set<net::HostPortPair> forced_spdy_exclusions;
214 Optional<bool> use_alternative_services; 214 Optional<bool> use_alternative_services;
215 Optional<double> alternative_service_probability_threshold; 215 Optional<double> alternative_service_probability_threshold;
216 216
217 Optional<bool> enable_npn; 217 Optional<bool> enable_npn;
218 218
219 Optional<bool> enable_brotli; 219 Optional<bool> enable_brotli;
220 220
221 Optional<bool> enable_quic; 221 Optional<bool> enable_quic;
222 Optional<bool> disable_quic_on_timeout_with_open_streams;
222 Optional<bool> enable_quic_for_proxies; 223 Optional<bool> enable_quic_for_proxies;
223 Optional<bool> enable_quic_port_selection; 224 Optional<bool> enable_quic_port_selection;
224 Optional<bool> quic_always_require_handshake_confirmation; 225 Optional<bool> quic_always_require_handshake_confirmation;
225 Optional<bool> quic_disable_connection_pooling; 226 Optional<bool> quic_disable_connection_pooling;
226 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 227 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
227 Optional<bool> quic_enable_connection_racing; 228 Optional<bool> quic_enable_connection_racing;
228 Optional<bool> quic_enable_non_blocking_io; 229 Optional<bool> quic_enable_non_blocking_io;
229 Optional<bool> quic_disable_disk_cache; 230 Optional<bool> quic_disable_disk_cache;
230 Optional<bool> quic_prefer_aes; 231 Optional<bool> quic_prefer_aes;
231 Optional<int> quic_max_number_of_lossy_connections; 232 Optional<int> quic_max_number_of_lossy_connections;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // Configures QUIC options in |globals| based on the flags in |command_line| 365 // Configures QUIC options in |globals| based on the flags in |command_line|
365 // as well as the QUIC field trial group and parameters. Must be called 366 // as well as the QUIC field trial group and parameters. Must be called
366 // before ConfigureSpdyGlobals. 367 // before ConfigureSpdyGlobals.
367 static void ConfigureQuicGlobals( 368 static void ConfigureQuicGlobals(
368 const base::CommandLine& command_line, 369 const base::CommandLine& command_line,
369 base::StringPiece quic_trial_group, 370 base::StringPiece quic_trial_group,
370 const VariationParameters& quic_trial_params, 371 const VariationParameters& quic_trial_params,
371 bool quic_allowed_by_policy, 372 bool quic_allowed_by_policy,
372 Globals* globals); 373 Globals* globals);
373 374
375 // Returns true if QUIC should be disabled when a connection times out with
376 // open streams.
377 static bool ShouldDisableQuicWhenConnectionTimesOutWithOpenStreams(
378 const VariationParameters& quic_trial_params);
379
374 // Returns true if QUIC should be enabled, either as a result 380 // Returns true if QUIC should be enabled, either as a result
375 // of a field trial or a command line flag. 381 // of a field trial or a command line flag.
376 static bool ShouldEnableQuic( 382 static bool ShouldEnableQuic(
377 const base::CommandLine& command_line, 383 const base::CommandLine& command_line,
378 base::StringPiece quic_trial_group, 384 base::StringPiece quic_trial_group,
379 bool quic_allowed_by_policy); 385 bool quic_allowed_by_policy);
380 386
381 // Returns true if QUIC should be enabled for proxies, either as a result 387 // Returns true if QUIC should be enabled for proxies, either as a result
382 // of a field trial or a command line flag. 388 // of a field trial or a command line flag.
383 static bool ShouldEnableQuicForProxies( 389 static bool ShouldEnableQuicForProxies(
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 bool is_quic_allowed_by_policy_; 589 bool is_quic_allowed_by_policy_;
584 590
585 const base::TimeTicks creation_time_; 591 const base::TimeTicks creation_time_;
586 592
587 base::WeakPtrFactory<IOThread> weak_factory_; 593 base::WeakPtrFactory<IOThread> weak_factory_;
588 594
589 DISALLOW_COPY_AND_ASSIGN(IOThread); 595 DISALLOW_COPY_AND_ASSIGN(IOThread);
590 }; 596 };
591 597
592 #endif // CHROME_BROWSER_IO_THREAD_H_ 598 #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