OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/network_session_configurator/switches.h" |
| 6 |
| 7 namespace switches { |
| 8 |
| 9 // clang-format off |
| 10 |
| 11 // Disables the HTTP/2 and SPDY/3.1 protocols. |
| 12 const char kDisableHttp2[] = "disable-http2"; |
| 13 |
| 14 // Disables the QUIC protocol. |
| 15 const char kDisableQuic[] = "disable-quic"; |
| 16 |
| 17 // Disable use of Chromium's port selection for the ephemeral port via bind(). |
| 18 // This only has an effect if QUIC protocol is enabled. |
| 19 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; |
| 20 |
| 21 // Enables support for HTTP alternative services. |
| 22 const char kEnableAlternativeServices[] = "enable-alternative-services"; |
| 23 |
| 24 // Enables the QUIC protocol. This is a temporary testing flag. |
| 25 const char kEnableQuic[] = "enable-quic"; |
| 26 |
| 27 // Enable use of Chromium's port selection for the ephemeral port via bind(). |
| 28 // This only has an effect if the QUIC protocol is enabled. |
| 29 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; |
| 30 |
| 31 // Ignores certificate-related errors. |
| 32 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; |
| 33 |
| 34 // Causes net::URLFetchers to ignore requests for SSL client certificates, |
| 35 // causing them to attempt an unauthenticated SSL/TLS session. This is intended |
| 36 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, |
| 37 // kSyncServiceURL, etc) |
| 38 const char kIgnoreUrlFetcherCertRequests[] = "ignore-urlfetcher-cert-requests"; |
| 39 |
| 40 // Specifies a comma separated list of host-port pairs to force use of QUIC on. |
| 41 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on"; |
| 42 |
| 43 // Specifies a comma separated list of QUIC connection options to send to |
| 44 // the server. |
| 45 const char kQuicConnectionOptions[] = "quic-connection-options"; |
| 46 |
| 47 // Specifies a comma separated list of hosts to whitelist QUIC for. |
| 48 const char kQuicHostWhitelist[] = "quic-host-whitelist"; |
| 49 |
| 50 // Specifies the maximum length for a QUIC packet. |
| 51 const char kQuicMaxPacketLength[] = "quic-max-packet-length"; |
| 52 |
| 53 // Specifies the version of QUIC to use. |
| 54 const char kQuicVersion[] = "quic-version"; |
| 55 |
| 56 // Allows for forcing socket connections to http/https to use fixed ports. |
| 57 const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; |
| 58 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; |
| 59 |
| 60 // clang-format on |
| 61 |
| 62 } // namespace switches |
OLD | NEW |