| Index: chrome/browser/io_thread.h
|
| diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
|
| index ef742bfd49a0febbdb40946d72507f2f1f72057a..ecc6e0f461f271880c92849c2f070cf34c5ef520 100644
|
| --- a/chrome/browser/io_thread.h
|
| +++ b/chrome/browser/io_thread.h
|
| @@ -165,6 +165,7 @@ class IOThread : public content::BrowserThreadDelegate {
|
| Optional<string> trusted_spdy_proxy;
|
| Optional<bool> enable_quic;
|
| Optional<bool> enable_quic_https;
|
| + Optional<bool> enable_quic_port_selection;
|
| Optional<size_t> quic_max_packet_length;
|
| Optional<net::QuicVersionVector> quic_supported_versions;
|
| Optional<net::HostPortPair> origin_to_force_quic_on;
|
| @@ -274,6 +275,15 @@ class IOThread : public content::BrowserThreadDelegate {
|
| bool ShouldEnableQuicHttps(const CommandLine& command_line,
|
| base::StringPiece quic_trial_group);
|
|
|
| + // Returns true if the selection of the ephemeral port in bind() should be
|
| + // performed by Chromium, and false if the OS should select the port. The OS
|
| + // option is used to prevent Windows from posting a security security warning
|
| + // dialog.
|
| + // TODO(grt) bug=329255: Detect presence of rule on Windows that allows us to
|
| + // do port selection without inducing a dialog.
|
| + bool IOThread::ShouldEnableEnableQuicPortSelection(
|
| + const CommandLine& command_line);
|
| +
|
| // Returns the maximum length for QUIC packets, based on any flags in
|
| // |command_line| or the field trial. Returns 0 if there is an error
|
| // parsing any of the options, or if the default value should be used.
|
|
|