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

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

Issue 811073004: QUIC - don't load data from disk cache if alternate protocol map doesn't (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 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_load_server_info_if_already_spoke_quic;
ramant (doing other things) 2014/12/18 18:37:03 hi Ryan, I am not sure about the name. Would app
Ryan Hamilton 2014/12/18 19:19:12 Hm. Good question. To be clear this controls if we
ramant (doing other things) 2014/12/18 20:51:10 Thanks Ryan for the above suggestion. Renamed the
195 Optional<size_t> quic_max_packet_length; 196 Optional<size_t> quic_max_packet_length;
196 net::QuicTagVector quic_connection_options; 197 net::QuicTagVector quic_connection_options;
197 Optional<std::string> quic_user_agent_id; 198 Optional<std::string> quic_user_agent_id;
198 Optional<net::QuicVersionVector> quic_supported_versions; 199 Optional<net::QuicVersionVector> quic_supported_versions;
199 Optional<net::HostPortPair> origin_to_force_quic_on; 200 Optional<net::HostPortPair> origin_to_force_quic_on;
200 bool enable_user_alternate_protocol_ports; 201 bool enable_user_alternate_protocol_ports;
201 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 202 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
202 // main frame load fails with a DNS error in order to provide more useful 203 // main frame load fails with a DNS error in order to provide more useful
203 // information to the renderer so it can show a more specific error page. 204 // information to the renderer so it can show a more specific error page.
204 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 205 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // Returns true if QUIC should disable connection pooling. 365 // Returns true if QUIC should disable connection pooling.
365 static bool ShouldQuicDisableConnectionPooling( 366 static bool ShouldQuicDisableConnectionPooling(
366 const VariationParameters& quic_trial_params); 367 const VariationParameters& quic_trial_params);
367 368
368 // 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
369 // cache base on field trial. Returns 0 if there is an error parsing the 370 // cache base on field trial. Returns 0 if there is an error parsing the
370 // field trial params, or if the default value should be used. 371 // field trial params, or if the default value should be used.
371 static int GetQuicLoadServerInfoTimeout( 372 static int GetQuicLoadServerInfoTimeout(
372 const VariationParameters& quic_trial_params); 373 const VariationParameters& quic_trial_params);
373 374
375 // Returns true if QUIC sever information shouldn't be loaded from disk cache
376 // base on field trial.
377 static bool ShouldQuicLoadServerInfoIfAlreadySpokeQuic(
378 const VariationParameters& quic_trial_params);
379
374 // Returns the maximum length for QUIC packets, based on any flags in 380 // Returns the maximum length for QUIC packets, based on any flags in
375 // |command_line| or the field trial. Returns 0 if there is an error 381 // |command_line| or the field trial. Returns 0 if there is an error
376 // parsing any of the options, or if the default value should be used. 382 // parsing any of the options, or if the default value should be used.
377 static size_t GetQuicMaxPacketLength( 383 static size_t GetQuicMaxPacketLength(
378 const base::CommandLine& command_line, 384 const base::CommandLine& command_line,
379 base::StringPiece quic_trial_group, 385 base::StringPiece quic_trial_group,
380 const VariationParameters& quic_trial_params); 386 const VariationParameters& quic_trial_params);
381 387
382 // Returns the QUIC versions specified by any flags in |command_line| 388 // Returns the QUIC versions specified by any flags in |command_line|
383 // or |quic_trial_params|. 389 // or |quic_trial_params|.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 bool is_spdy_disabled_by_policy_; 462 bool is_spdy_disabled_by_policy_;
457 463
458 const base::TimeTicks creation_time_; 464 const base::TimeTicks creation_time_;
459 465
460 base::WeakPtrFactory<IOThread> weak_factory_; 466 base::WeakPtrFactory<IOThread> weak_factory_;
461 467
462 DISALLOW_COPY_AND_ASSIGN(IOThread); 468 DISALLOW_COPY_AND_ASSIGN(IOThread);
463 }; 469 };
464 470
465 #endif // CHROME_BROWSER_IO_THREAD_H_ 471 #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