features.gni 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. import("//build/config/features.gni")
  5. declare_args() {
  6. # Disables support for file URLs. File URL support requires use of icu.
  7. disable_file_support = false
  8. # WebSockets and socket stream code are not used on iOS and are optional in
  9. # cronet.
  10. enable_websockets = !is_ios
  11. # Enable Kerberos authentication. It is disabled by default on iOS, Fuchsia
  12. # and Chromecast, at least for now. This feature needs configuration
  13. # (krb5.conf and so on).
  14. # TODO(fuchsia): Enable kerberos on Fuchsia when it's implemented there.
  15. use_kerberos = !is_ios && !is_fuchsia && !is_castos && !is_cast_android
  16. # Do not disable brotli filter by default.
  17. disable_brotli_filter = false
  18. # Multicast DNS.
  19. enable_mdns = is_win || is_linux || is_chromeos || is_fuchsia || is_apple
  20. # Reporting not used on iOS.
  21. enable_reporting = !is_ios
  22. # Includes the transport security state preload list. This list includes
  23. # mechanisms (e.g. HSTS, HPKP) to enforce trusted connections to a significant
  24. # set of hardcoded domains. While this list has a several hundred KB of binary
  25. # size footprint, this flag should not be disabled unless the embedder is
  26. # willing to take the responsibility to make sure that all important
  27. # connections use HTTPS.
  28. include_transport_security_state_preload_list = true
  29. # Platforms where the cert verifier comparison trial is supported.
  30. # See https://crbug.com/649026.
  31. trial_comparison_cert_verifier_supported = is_mac || is_win
  32. # Platforms where both the builtin cert verifier and a platform verifier are
  33. # supported and may be switched between using the CertVerifierBuiltin feature
  34. # flag. This does not include platforms where the builtin cert verifier is
  35. # the only verifier supported.
  36. builtin_cert_verifier_feature_supported = is_mac
  37. # Platforms for which the builtin cert verifier can use the Chrome Root Store.
  38. # See https://crbug.com/1216547 for status.
  39. chrome_root_store_supported = is_win || is_mac
  40. }