[go: nahoru, domu]

blob: 8027cbae175e8c74f0cabd2fda6da864fe8026cf [file] [log] [blame]
Avi Drissman64595482022-09-14 20:52:291# Copyright 2016 The Chromium Authors
sdefresneeb265862016-09-08 14:27:122# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Hubert Chao615632c62023-02-07 10:14:415import("//build/config/cronet/config.gni")
sdefresneeb265862016-09-08 14:27:126import("//build/config/features.gni")
7
8declare_args() {
9 # Disables support for file URLs. File URL support requires use of icu.
Mohannad Farrage04f5cc2023-10-12 10:34:3510 # Cronet does not support file URLs.
11 disable_file_support = is_cronet_build
sdefresneeb265862016-09-08 14:27:1212
Dave Tapuskab8a7b812023-02-03 21:19:4613 # WebSockets and socket stream code are not used when blink is not used
14 # and are optional in cronet.
15 enable_websockets = use_blink
Matt Menke83f817252021-08-10 01:19:5416
Sergey Ulanov49085572017-07-10 23:25:4617 # Enable Kerberos authentication. It is disabled by default on iOS, Fuchsia
18 # and Chromecast, at least for now. This feature needs configuration
Lutz Justen3ea09c02019-04-25 07:49:4319 # (krb5.conf and so on).
Sergey Ulanov49085572017-07-10 23:25:4620 # TODO(fuchsia): Enable kerberos on Fuchsia when it's implemented there.
Ryan Keane2a3aa8e92022-06-09 18:51:3221 use_kerberos = !is_ios && !is_fuchsia && !is_castos && !is_cast_android
sdefresneeb265862016-09-08 14:27:1222
23 # Do not disable brotli filter by default.
24 disable_brotli_filter = false
brettw5224a182016-10-28 22:13:0225
Nidhi Jaju8d811df2023-06-07 02:35:4726 # Do not disable zstd filter by default, except for Cronet builds.
27 disable_zstd_filter = is_cronet_build
28
brettw5224a182016-10-28 22:13:0229 # Multicast DNS.
Sean McAllister9c0cdcf2020-07-31 16:24:2030 enable_mdns = is_win || is_linux || is_chromeos || is_fuchsia || is_apple
mmenkefd9d15c2017-06-29 13:45:5431
32 # Reporting not used on iOS.
33 enable_reporting = !is_ios
xunjieli815ad5b2017-07-18 15:51:3534
35 # Includes the transport security state preload list. This list includes
36 # mechanisms (e.g. HSTS, HPKP) to enforce trusted connections to a significant
37 # set of hardcoded domains. While this list has a several hundred KB of binary
38 # size footprint, this flag should not be disabled unless the embedder is
39 # willing to take the responsibility to make sure that all important
40 # connections use HTTPS.
41 include_transport_security_state_preload_list = true
Matt Muellerdbc0aa72019-02-04 22:13:1842
Matt Mueller77eb9442022-10-05 01:54:0543 # Platforms for which certificate verification can be performed using the
44 # builtin cert verifier with the Chrome Root Store, and this can be
45 # configured using the ChromeRootStoreUsed feature flag. When the feature
46 # flag is false, verification may be done with the platform verifier or the
47 # builtin verifier using platform roots, depending on the platform.
Hubert Chao7c390432021-07-16 17:36:0448 # See https://crbug.com/1216547 for status.
Matt Mueller9942b74d2023-10-04 16:33:0149 chrome_root_store_optional = is_android && !is_cronet_build
Matt Mueller8b02b1902023-03-07 00:06:3650
51 # Platforms for which certificate verification can only be performed using
52 # the builtin cert verifier with the Chrome Root Store.
Matt Mueller9942b74d2023-10-04 16:33:0153 chrome_root_store_only = is_win || is_mac || is_linux || is_chromeos
Matt Mueller8b02b1902023-03-07 00:06:3654}
55
56assert(!chrome_root_store_optional || !chrome_root_store_only,
57 "at most one of chrome_root_store_optional and chrome_root_store_only " +
58 "may be true")
59
60# Needs to be in a separate declare_args since it refers to args set in the
61# previous declare_args block.
62declare_args() {
63 # All platforms for which certificate verification can be performed using the
64 # builtin cert verifier with the Chrome Root Store. This includes both
65 # platforms where use of the Chrome Root Store is optional and platforms
66 # where it is the only supported method.
Hubert Chao615632c62023-02-07 10:14:4167 chrome_root_store_supported =
Matt Mueller8b02b1902023-03-07 00:06:3668 chrome_root_store_optional || chrome_root_store_only
sdefresneeb265862016-09-08 14:27:1269}