sdefresne | eb26586 | 2016-09-08 14:27:12 | [diff] [blame] | 1 | # Copyright 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 | import("//build/config/features.gni") |
| 6 | |
| 7 | declare_args() { |
ckrasic | 73f7240b | 2017-01-24 00:06:45 | [diff] [blame] | 8 | # If true, prune things down as needed for proto-quic build. |
| 9 | is_proto_quic = false |
| 10 | |
sdefresne | eb26586 | 2016-09-08 14:27:12 | [diff] [blame] | 11 | # Disables support for file URLs. File URL support requires use of icu. |
| 12 | disable_file_support = false |
| 13 | |
| 14 | # WebSockets and socket stream code are not used on iOS and are optional in |
| 15 | # cronet. |
| 16 | enable_websockets = !is_ios |
| 17 | disable_ftp_support = is_ios || is_chromecast |
| 18 | |
Sergey Ulanov | 4908557 | 2017-07-10 23:25:46 | [diff] [blame] | 19 | # Enable Kerberos authentication. It is disabled by default on iOS, Fuchsia |
| 20 | # and Chromecast, at least for now. This feature needs configuration |
Lutz Justen | 3ea09c0 | 2019-04-25 07:49:43 | [diff] [blame] | 21 | # (krb5.conf and so on). |
Sergey Ulanov | 4908557 | 2017-07-10 23:25:46 | [diff] [blame] | 22 | # TODO(fuchsia): Enable kerberos on Fuchsia when it's implemented there. |
| 23 | use_kerberos = !is_ios && !is_chromecast && !is_fuchsia |
sdefresne | eb26586 | 2016-09-08 14:27:12 | [diff] [blame] | 24 | |
| 25 | # Do not disable brotli filter by default. |
| 26 | disable_brotli_filter = false |
brettw | 5224a18 | 2016-10-28 22:13:02 | [diff] [blame] | 27 | |
| 28 | # Multicast DNS. |
Qingsi Wang | c2213d5d | 2018-11-02 01:28:12 | [diff] [blame] | 29 | enable_mdns = is_win || is_linux || is_fuchsia || is_mac || is_ios |
mmenke | fd9d15c | 2017-06-29 13:45:54 | [diff] [blame] | 30 | |
| 31 | # Reporting not used on iOS. |
| 32 | enable_reporting = !is_ios |
xunjieli | 815ad5b | 2017-07-18 15:51:35 | [diff] [blame] | 33 | |
| 34 | # Includes the transport security state preload list. This list includes |
| 35 | # mechanisms (e.g. HSTS, HPKP) to enforce trusted connections to a significant |
| 36 | # set of hardcoded domains. While this list has a several hundred KB of binary |
| 37 | # size footprint, this flag should not be disabled unless the embedder is |
| 38 | # willing to take the responsibility to make sure that all important |
| 39 | # connections use HTTPS. |
| 40 | include_transport_security_state_preload_list = true |
Matt Mueller | dbc0aa7 | 2019-02-04 22:13:18 | [diff] [blame] | 41 | |
| 42 | # Platforms where the cert verifier comparison trial is supported. |
| 43 | # See https://crbug.com/649026. |
| 44 | trial_comparison_cert_verifier_supported = is_desktop_linux || is_mac |
Matt Mueller | 36c3b10 | 2019-06-18 02:28:20 | [diff] [blame] | 45 | |
| 46 | # Platforms where both the builtin cert verifier and a platform verifier are |
| 47 | # supported and may be switched between using the CertVerifierBuiltin feature |
| 48 | # flag. This does not include platforms where the builtin cert verifier is |
| 49 | # the only verifier supported. |
Pavol Marko | e11ebca | 2019-07-03 07:08:37 | [diff] [blame] | 50 | builtin_cert_verifier_feature_supported = |
| 51 | is_desktop_linux || is_mac || is_chromeos |
sdefresne | eb26586 | 2016-09-08 14:27:12 | [diff] [blame] | 52 | } |