1 # Do NOT add chrome to the list below. We shouldn't be including files
2 # from src/chrome in src/content.
4 # The subdirectories in content/ will manually allow their own include
5 # directories in content/ so we disallow all of them.
7 "+content/app/strings/grit", # For generated headers
10 "+content/public/common",
11 "+content/public/test",
12 "+content/services/auction_worklet/public",
14 "+blink/public/resources/grit",
18 # Content can depend on components that are:
19 # 1) related to the implementation of the web platform, or,
20 # 2) shared code between third_party/blink and content
21 # It should not depend on chrome features or implementation details, i.e. the
22 # original components/ directories which was code split out from chrome/ to be
23 # shared with iOS. This includes, but isn't limited to, browser features such
24 # as autofill or extensions, and chrome implementation details such as
25 # settings, packaging details, installation or crash reporting.
27 "+components/attribution_reporting",
28 "+components/browsing_topics/common",
29 "+components/memory_pressure",
30 "+components/ml/mojom",
31 "+components/services/filesystem",
32 "+components/services/font/public",
33 "+components/startup_metric_utils",
34 "+components/variations",
35 "+components/value_store",
38 "+grit/blink_resources.h",
43 "+mojo/core/embedder",
49 "+services/proxy_resolver/public/mojom",
50 "+services/service_manager/zygote",
53 # In general, content/ should not rely on google_apis, since URLs
54 # and access tokens should usually be provided by the
57 # There are a couple of specific parts of content that are excepted
58 # from this rule, e.g. content/browser/speech/DEPS. These are cases of
59 # implementations that are strongly tied to Google servers, i.e. we
60 # don't expect alternate implementations to be provided by the
64 # Don't allow inclusion of these other libs we shouldn't be calling directly.
68 # Allow inclusion of third-party code:
70 "+third_party/boringssl/src/include",
72 "+third_party/mozilla",
73 "+third_party/ocmock",
76 "+third_party/sqlite",
77 "+third_party/khronos",
78 "+third_party/webrtc",
79 "+third_party/webrtc_overrides",
80 "+third_party/zlib/google",
81 "+third_party/blink/public",
83 "+ui/accelerated_widget_mac",
86 # Aura is analogous to Win32 or a Gtk, so it is allowed.
97 "+ui/resources/grit/ui_resources.h",
98 "+ui/resources/grit/webui_resources.h",
99 "+ui/resources/grit/webui_resources_map.h",
102 "+ui/strings/grit/ui_strings.h",
104 "+ui/touch_selection",
106 # Content knows about grd files, but the specifics of how to get a resource
107 # given its id is left to the embedder.
110 # These files aren't related to grd, so they're fine.
111 "+ui/base/l10n/l10n_util_android.h",
112 "+ui/base/l10n/l10n_util_win.h",
113 "+ui/base/resource/resource_scale_factor.h",
115 # Content shouldn't depend on views. While we technically don't need this
116 # line, since the top level DEPS doesn't allow it, we add it to make this
123 # For generated JNI includes.
124 "+content/public/android/content_jni_headers",
125 "+content/public/android/content_main_dex_jni",
126 "+content/public/android/jar_jni",
129 specific_include_rules = {
130 ".*_browsertest[a-z_]*\.(cc|h|mm)": [
131 # content -> content/shell dependency is disallowed, except browser tests.
132 "+content/shell/browser",
133 "+content/shell/common",