blob: 487034149f73182eb61e9c40e7af0db61debb6aa [file]
include_rules = [
"+components/network_time/time_tracker",
"+components/unexportable_keys",
"+crypto",
"+net/net_jni_headers",
"+third_party/apple_apsl",
"+third_party/boringssl/src/include",
"+third_party/boringssl/src/pki",
"+third_party/nss",
"+third_party/protobuf/src/google/protobuf",
"+third_party/re2",
"+third_party/zlib",
"+third_party/simdutf",
# Most of net should not depend on icu, and brotli to keep size down when
# built as a library.
"-base/i18n",
"-third_party/brotli",
"-third_party/icu",
]
specific_include_rules = {
# Within net, only used by file: requests.
"directory_lister(\\.cc|_unittest\\.cc)": [
"+base/i18n",
],
"structured_headers\.cc": [
"+third_party/rust/sfv/v0_15/wrapper",
],
# Functions largely not used by the rest of net.
"directory_listing\\.cc": [
"+base/i18n",
],
# Within net, only used by file: requests.
"filename_util_icu\\.cc": [
"+base/i18n/file_util_icu.h",
],
# Consolidated string functions that depend on icu.
"net_string_util_icu\\.cc": [
"+base/i18n/case_conversion.h",
"+base/i18n/i18n_constants.h",
"+base/i18n/icu_string_conversions.h",
"+third_party/icu/source/common/unicode/ucnv.h"
],
"websocket_channel\\.h": [
"+base/i18n",
],
"brotli_source_stream\\.cc": [
"+third_party/brotli",
],
"cert_compression\\.cc": [
"+third_party/brotli",
],
"fuzzer_test_support\\.cc": [
"+base/i18n",
],
"zstd_source_stream\\.cc": [
"+third_party/zstd",
],
# CDT cache compression: zstd decompression of compressed cache entry bodies.
"cache_body_decompressor\\.(cc|h)": [
"+third_party/zstd",
],
# CDT cache compression: zstd compression at cache-write time.
"cache_body_compressor\\.(cc|h)": [
"+third_party/zstd",
],
# Tests call ZSTD_compress() to produce fixtures for zstd read-path coverage.
"http_cache_unittest\\.cc": [
"+third_party/zstd",
],
# Unit test for the cache compressor uses ZSTD_decompressStream() to verify
# round-trip correctness.
"cache_body_compressor_unittest\\.cc": [
"+third_party/zstd",
],
"cookie_partition_key\\.(cc|h)": [
"+mojo/public/cpp/bindings/default_construct_tag.h",
],
"proxy_config_service_linux\\.cc": [
"+ui/base/glib",
],
# Dependencies specific for fuzz targets and other fuzzing-related code.
".*fuzz.*": [
"+third_party/fuzztest",
"+third_party/googletest",
"+third_party/libprotobuf-mutator", # This is needed for LPM-based fuzzers.
"+third_party/icu/fuzzers/fuzzer_utils.h"
],
# Fuzzers may also be included in unit tests.
".*test\\.cc": [
"+third_party/fuzztest",
],
# WinHTTP pre-check helper uses ScopedHInternet for RAII handle management.
"websocket_end_to_end_test\\.cc": [
"+components/winhttp/scoped_hinternet.h",
],
"cookie_monster_unittest\\.cc": [
"+base/i18n/time_formatting.h",
],
}
skip_child_includes = [
"third_party",
]