1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
|
include_rules = [
# Allow inclusion of specific components that we depend on.
# See comment in content/DEPS for which components are allowed.
# *********************************** NOTE ***********************************
# If adding a new component dependency, email
# content-owners@chromium.org first.
# ****************************************************************************
"+components/discardable_memory/common",
"+components/discardable_memory/public",
"+components/discardable_memory/service",
"+components/download/database",
"+components/download/public/common",
"+components/embedder_support/switches.h",
"+components/embedder_support/user_agent_utils.h",
"+components/file_access",
"+components/filename_generation",
"+components/grit",
"+components/language_detection/content/common",
"+components/power_monitor",
"+components/services/font",
"+components/services/font_data",
"+components/services/filesystem",
"+components/services/quarantine/test_support.h",
"+components/services/quarantine/quarantine.h",
"+components/services/storage",
"+components/services/storage/public",
"+components/session_manager/core",
"+components/leveldb_proto/public",
"+components/link_header_util",
"+components/metrics",
"+components/metrics:single_sample_metrics",
"+components/network_session_configurator/common",
"+components/offline_pages/buildflags/buildflags.h",
"+components/offline_pages/core/request_header",
"+components/payments/content/icon",
"+components/payments/mojom",
"+components/services/heap_profiling/public",
"+components/services/quarantine/public/mojom/quarantine.mojom.h",
"+components/system_media_controls",
"+components/tracing",
"+components/ukm",
"+components/unexportable_keys/features.h",
"+components/url_formatter",
"+components/viz",
"+components/web_package",
"+components/webauthn/json",
"+components/cbor",
"+components/os_crypt/sync/os_crypt_switches.h",
# *********************************** NOTE ***********************************
# If adding a new component dependency, email
# content-owners@chromium.org first.
# ****************************************************************************
"+content/public/app",
"+content/public/browser",
"+device/base/synchronization",
"+device/bluetooth",
"+device/gamepad", # For gamepad API
"+device/nfc",
"+device/vr/public", # For WebXR API
"+device/vr/buildflags/buildflags.h", # For WebXR API
# This can only be used on POSIX, in particular it mustn't be used on Windows
# in the browser DLL.
"+gin/v8_initializer.h",
"+mojo",
"+sql",
"+ui/aura_extra",
"+components/vector_icons",
"+ui/linux",
"+ui/strings/grit/ax_strings.h",
"+ui/strings/grit/auto_image_annotation_strings.h",
"+ui/webui",
# TODO(crbug.com/40129825): Consider removing "+services". Each service should
# have explicit rules to allow services/*/public rather than adding a blanket
# dependency.
"+services",
"-services/content",
"+services/content/service.h",
"+services/content/service_delegate.h",
"+services/device/public/cpp/compute_pressure",
"-services/network",
"+services/network/public/cpp",
"+services/network/public/mojom",
"-services/cert_verifier",
"+services/cert_verifier/public/cpp",
"+services/cert_verifier/public/mojom",
"+services/screen_ai/buildflags",
"+services/video_effects/public/cpp/buildflags.h",
# In general, //content shouldn't depend on //device.
# This is the an exception.
"+device/udev_linux", # For udev utility and wrapper library.
# Explicitly disallow using SyncMessageFilter to prevent browser from
# sending synchronous IPC messages on non-UI threads.
"-ipc/ipc_sync_message_filter.h",
# Other libraries.
"+third_party/iaccessible2",
"+third_party/isimpledom",
"+third_party/khronos", # For enum definitions only
"+third_party/libaom/av1_buildflags.h",
"+third_party/re2",
"+third_party/rust/cxx",
"+third_party/zlib",
# Allow non-browser Chrome OS code to be used.
"+chromeos",
"+third_party/cros_system_api",
# No inclusion of WebKit from the browser, other than the ones in
# WebKit/public/{mojom,common}, or the ones that are strictly enum/POD,
# header-only types, and some selected common code.
"-third_party/blink",
"+third_party/blink/public/common",
"+third_party/blink/public/mojom",
"+third_party/blink/public/platform/resource_request_blocked_reason.h",
"+third_party/blink/public/platform/web_content_security_policy.h",
"+third_party/blink/public/platform/web_fullscreen_video_status.h",
"+third_party/blink/public/platform/web_text_input_type.h",
"+third_party/blink/public/platform/mac/web_scrollbar_theme.h",
"+third_party/blink/public/platform/modules/service_worker/web_service_worker_error.h",
"+third_party/blink/public/platform/modules/sms/webotp_service.mojom.h",
"+third_party/blink/public/public_buildflags.h",
"+third_party/blink/public/strings/grit/blink_strings.h",
"+third_party/blink/public/web/web_ax_enums.h",
"+third_party/blink/public/web/web_console_message.h",
"+third_party/blink/public/web/web_drag_status.h",
"+third_party/blink/public/web/web_serialized_script_value_version.h",
"+third_party/blink/public/mojom/frame/tree_scope_type.mojom.h",
"+tools/v8_context_snapshot/buildflags.h",
# DO NOT ADD ANY CHROME OR COMPONENTS INCLUDES HERE!!!
# See https://sites.google.com/a/chromium.org/dev/developers/content-module
# for more information.
]
specific_include_rules = {
".*test\.cc": [
"+components/os_crypt/async",
"+services/network/test",
],
".*test_utils?(_.+)?\.(h|cc)": [
"+services/network/test",
],
"browser_interface_binders\.cc": [
"+services/webnn/public/mojom/features.mojom-features.h",
],
"browser_main_loop\.cc": [
# TODO(crbug.com/40672800): Remove.
"+services/network/transitional_url_loader_factory_owner.h",
"+device/fido/hid/fido_hid_discovery.h",
],
"browsing_data_(filter_builder|remover)_impl_unittest\.cc": [
"+services/network/cookie_manager.h",
],
"cookie_readiness_list_parser_fuzztest\.cc": [
"+third_party/fuzztest"
],
"gpu_data_manager_visual_proxy_ozone_linux\.(cc|h)": [
"+ui/ozone/public/ozone_platform.h",
"+ui/ozone/public/platform_gl_egl_utility.h",
],
"navigation_url_loader_impl_unittest\.cc": [
"+services/network/cookie_settings.h",
"+services/network/resource_scheduler/resource_scheduler_client.h",
"+services/network/shared_resource_checker.h",
"+services/network/url_loader.h",
"+services/network/url_request_context_owner.h",
],
"network_service_browsertest\.cc": [
"+services/network/network_service.h",
],
"network_service_instance_impl\.cc": [
# Used to instantiate a CertVerifierServiceFactory in the browser process.
"+services/cert_verifier/cert_verifier_service_factory.h",
# TODO(crbug.com/40672800): Remove.
"+services/network/network_service.h",
],
"signed_exchange_handler_unittest\.cc": [
"+services/network/network_context.h",
],
# SiteInstance and BrowsingInstance should not depend on the types of things
# that rely on them, like RenderFrameHostImpl or WebContentsImpl.
"(site_instance_impl|browsing_instance)\.(cc|h)": [
"-content/browser/renderer_host",
"-content/browser/web_contents",
# These files do not cycle back to SiteInstance or BrowsingInstance.
"+content/browser/renderer_host/render_process_host_impl.h",
"+content/browser/renderer_host/agent_scheduling_group_host.h",
],
"storage_partition_impl_unittest\.cc": [
"+services/network/cookie_manager.h",
"+third_party/leveldatabase",
],
"launch_as_mojo_client_browsertest.cc": [
"+ui/ozone/public/ozone_switches.h",
],
"site_per_process_mac_browsertest\.mm": [
"+content/app_shim_remote_cocoa",
],
"utility_sandbox_delegate_win\.cc": [
"+content/utility/sandbox_delegate_data.mojom.h"
],
"utility_process_host\.cc": [
"+ui/ozone/public/ozone_switches.h",
],
"web_app_system_media_controls_manager.cc": [
"+components/remote_cocoa/browser"
],
"render_widget_host_view_aura.cc": [
"+components/stylus_handwriting/win/features.h"
],
"web_contents_impl.cc": [
"+components/stylus_handwriting/win/features.h"
],
"stylus_handwriting_callback_sink_win.cc": [
"+components/stylus_handwriting/win/features.h"
],
"stylus_handwriting_controller_win.cc": [
"+components/stylus_handwriting/win/features.h"
],
"stylus_handwriting_controller_win_browsertest.cc": [
"+components/stylus_handwriting/win/features.h"
],
}
|