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

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

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Style nit fixed. Created 4 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 Optional<size_t> quic_max_packet_length; 237 Optional<size_t> quic_max_packet_length;
238 net::QuicTagVector quic_connection_options; 238 net::QuicTagVector quic_connection_options;
239 Optional<std::string> quic_user_agent_id; 239 Optional<std::string> quic_user_agent_id;
240 Optional<net::QuicVersionVector> quic_supported_versions; 240 Optional<net::QuicVersionVector> quic_supported_versions;
241 Optional<net::HostPortPair> origin_to_force_quic_on; 241 Optional<net::HostPortPair> origin_to_force_quic_on;
242 Optional<bool> quic_close_sessions_on_ip_change; 242 Optional<bool> quic_close_sessions_on_ip_change;
243 Optional<int> quic_idle_connection_timeout_seconds; 243 Optional<int> quic_idle_connection_timeout_seconds;
244 Optional<bool> quic_disable_preconnect_if_0rtt; 244 Optional<bool> quic_disable_preconnect_if_0rtt;
245 std::unordered_set<std::string> quic_host_whitelist; 245 std::unordered_set<std::string> quic_host_whitelist;
246 Optional<bool> quic_migrate_sessions_on_network_change; 246 Optional<bool> quic_migrate_sessions_on_network_change;
247 Optional<bool> quic_migrate_sessions_early;
247 bool enable_user_alternate_protocol_ports; 248 bool enable_user_alternate_protocol_ports;
248 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 249 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
249 // main frame load fails with a DNS error in order to provide more useful 250 // main frame load fails with a DNS error in order to provide more useful
250 // information to the renderer so it can show a more specific error page. 251 // information to the renderer so it can show a more specific error page.
251 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 252 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
252 bool enable_token_binding; 253 bool enable_token_binding;
253 }; 254 };
254 255
255 // |net_log| must either outlive the IOThread or be NULL. 256 // |net_log| must either outlive the IOThread or be NULL.
256 IOThread(PrefService* local_state, 257 IOThread(PrefService* local_state,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Returns the set of hosts to whitelist for QUIC. 482 // Returns the set of hosts to whitelist for QUIC.
482 static std::unordered_set<std::string> GetQuicHostWhitelist( 483 static std::unordered_set<std::string> GetQuicHostWhitelist(
483 const base::CommandLine& command_line, 484 const base::CommandLine& command_line,
484 const VariationParameters& quic_trial_params); 485 const VariationParameters& quic_trial_params);
485 486
486 // Returns true if QUIC should migrate sessions when primary network 487 // Returns true if QUIC should migrate sessions when primary network
487 // changes. 488 // changes.
488 static bool ShouldQuicMigrateSessionsOnNetworkChange( 489 static bool ShouldQuicMigrateSessionsOnNetworkChange(
489 const VariationParameters& quic_trial_params); 490 const VariationParameters& quic_trial_params);
490 491
492 // Returns true if QUIC should migrate sessions early.
493 static bool ShouldQuicMigrateSessionsEarly(
494 const VariationParameters& quic_trial_params);
495
491 // Returns the maximum length for QUIC packets, based on any flags in 496 // Returns the maximum length for QUIC packets, based on any flags in
492 // |command_line| or the field trial. Returns 0 if there is an error 497 // |command_line| or the field trial. Returns 0 if there is an error
493 // parsing any of the options, or if the default value should be used. 498 // parsing any of the options, or if the default value should be used.
494 static size_t GetQuicMaxPacketLength( 499 static size_t GetQuicMaxPacketLength(
495 const base::CommandLine& command_line, 500 const base::CommandLine& command_line,
496 const VariationParameters& quic_trial_params); 501 const VariationParameters& quic_trial_params);
497 502
498 // Returns the QUIC versions specified by any flags in |command_line| 503 // Returns the QUIC versions specified by any flags in |command_line|
499 // or |quic_trial_params|. 504 // or |quic_trial_params|.
500 static net::QuicVersion GetQuicVersion( 505 static net::QuicVersion GetQuicVersion(
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 bool is_quic_allowed_by_policy_; 602 bool is_quic_allowed_by_policy_;
598 603
599 const base::TimeTicks creation_time_; 604 const base::TimeTicks creation_time_;
600 605
601 base::WeakPtrFactory<IOThread> weak_factory_; 606 base::WeakPtrFactory<IOThread> weak_factory_;
602 607
603 DISALLOW_COPY_AND_ASSIGN(IOThread); 608 DISALLOW_COPY_AND_ASSIGN(IOThread);
604 }; 609 };
605 610
606 #endif // CHROME_BROWSER_IO_THREAD_H_ 611 #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