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

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

Issue 858323002: QUIC - Deleted disable_loading_server_info_for_new_servers field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase with TOT Created 5 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 Optional<bool> force_spdy_always; 185 Optional<bool> force_spdy_always;
186 std::set<net::HostPortPair> forced_spdy_exclusions; 186 std::set<net::HostPortPair> forced_spdy_exclusions;
187 Optional<bool> use_alternate_protocols; 187 Optional<bool> use_alternate_protocols;
188 Optional<double> alternate_protocol_probability_threshold; 188 Optional<double> alternate_protocol_probability_threshold;
189 189
190 Optional<bool> enable_quic; 190 Optional<bool> enable_quic;
191 Optional<bool> enable_quic_port_selection; 191 Optional<bool> enable_quic_port_selection;
192 Optional<bool> quic_always_require_handshake_confirmation; 192 Optional<bool> quic_always_require_handshake_confirmation;
193 Optional<bool> quic_disable_connection_pooling; 193 Optional<bool> quic_disable_connection_pooling;
194 Optional<int> quic_load_server_info_timeout_ms; 194 Optional<int> quic_load_server_info_timeout_ms;
195 Optional<bool> quic_disable_loading_server_info_for_new_servers;
196 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 195 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
197 Optional<bool> quic_enable_truncated_connection_ids; 196 Optional<bool> quic_enable_truncated_connection_ids;
198 Optional<size_t> quic_max_packet_length; 197 Optional<size_t> quic_max_packet_length;
199 net::QuicTagVector quic_connection_options; 198 net::QuicTagVector quic_connection_options;
200 Optional<std::string> quic_user_agent_id; 199 Optional<std::string> quic_user_agent_id;
201 Optional<net::QuicVersionVector> quic_supported_versions; 200 Optional<net::QuicVersionVector> quic_supported_versions;
202 Optional<net::HostPortPair> origin_to_force_quic_on; 201 Optional<net::HostPortPair> origin_to_force_quic_on;
203 bool enable_user_alternate_protocol_ports; 202 bool enable_user_alternate_protocol_ports;
204 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 203 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
205 // main frame load fails with a DNS error in order to provide more useful 204 // main frame load fails with a DNS error in order to provide more useful
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // Returns true if QUIC should disable connection pooling. 365 // Returns true if QUIC should disable connection pooling.
367 static bool ShouldQuicDisableConnectionPooling( 366 static bool ShouldQuicDisableConnectionPooling(
368 const VariationParameters& quic_trial_params); 367 const VariationParameters& quic_trial_params);
369 368
370 // Returns the timeout value for loading of QUIC sever information from disk 369 // Returns the timeout value for loading of QUIC sever information from disk
371 // cache based on field trial. Returns 0 if there is an error parsing the 370 // cache based on field trial. Returns 0 if there is an error parsing the
372 // field trial params, or if the default value should be used. 371 // field trial params, or if the default value should be used.
373 static int GetQuicLoadServerInfoTimeout( 372 static int GetQuicLoadServerInfoTimeout(
374 const VariationParameters& quic_trial_params); 373 const VariationParameters& quic_trial_params);
375 374
376 // Returns true if QUIC sever information shouldn't be loaded for new servers.
377 static bool ShouldDisableLoadingServerInfoForNewServers(
378 const VariationParameters& quic_trial_params);
379
380 // Returns the ratio of time to load QUIC sever information from disk cache to 375 // Returns the ratio of time to load QUIC sever information from disk cache to
381 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing 376 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing
382 // the field trial params, or if the default value should be used. 377 // the field trial params, or if the default value should be used.
383 static float GetQuicLoadServerInfoTimeoutSrttMultiplier( 378 static float GetQuicLoadServerInfoTimeoutSrttMultiplier(
384 const VariationParameters& quic_trial_params); 379 const VariationParameters& quic_trial_params);
385 380
386 // Returns true if QUIC's TruncatedConnectionIds should be enabled. 381 // Returns true if QUIC's TruncatedConnectionIds should be enabled.
387 static bool ShouldQuicEnableTruncatedConnectionIds( 382 static bool ShouldQuicEnableTruncatedConnectionIds(
388 const VariationParameters& quic_trial_params); 383 const VariationParameters& quic_trial_params);
389 384
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 bool is_spdy_disabled_by_policy_; 466 bool is_spdy_disabled_by_policy_;
472 467
473 const base::TimeTicks creation_time_; 468 const base::TimeTicks creation_time_;
474 469
475 base::WeakPtrFactory<IOThread> weak_factory_; 470 base::WeakPtrFactory<IOThread> weak_factory_;
476 471
477 DISALLOW_COPY_AND_ASSIGN(IOThread); 472 DISALLOW_COPY_AND_ASSIGN(IOThread);
478 }; 473 };
479 474
480 #endif // CHROME_BROWSER_IO_THREAD_H_ 475 #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