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/browsing_topics/common",
28 "+components/memory_pressure",
29 "+components/ml/mojom",
30 "+components/power_scheduler",
31 "+components/services/filesystem",
32 "+components/services/font/public",
33 "+components/variations",
34 "+components/value_store",
37 "+grit/blink_resources.h",
42 "+mojo/core/embedder",
48 "+services/proxy_resolver/public/mojom",
49 "+services/service_manager/zygote",
52 # In general, content/ should not rely on google_apis, since URLs
53 # and access tokens should usually be provided by the
56 # There are a couple of specific parts of content that are excepted
57 # from this rule, e.g. content/browser/speech/DEPS. These are cases of
58 # implementations that are strongly tied to Google servers, i.e. we
59 # don't expect alternate implementations to be provided by the
63 # Don't allow inclusion of these other libs we shouldn't be calling directly.
67 # Allow inclusion of third-party code:
69 "+third_party/boringssl/src/include",
71 "+third_party/mozilla",
72 "+third_party/ocmock",
75 "+third_party/sqlite",
76 "+third_party/khronos",
77 "+third_party/webrtc",
78 "+third_party/webrtc_overrides",
79 "+third_party/zlib/google",
80 "+third_party/blink/public",
82 "+ui/accelerated_widget_mac",
85 # Aura is analogous to Win32 or a Gtk, so it is allowed.
96 "+ui/resources/grit/ui_resources.h",
97 "+ui/resources/grit/webui_generated_resources.h",
98 "+ui/resources/grit/webui_generated_resources_map.h",
101 "+ui/strings/grit/ui_strings.h",
103 "+ui/touch_selection",
105 # Content knows about grd files, but the specifics of how to get a resource
106 # given its id is left to the embedder.
109 # These files aren't related to grd, so they're fine.
110 "+ui/base/l10n/l10n_util_android.h",
111 "+ui/base/l10n/l10n_util_win.h",
113 # Content shouldn't depend on views. While we technically don't need this
114 # line, since the top level DEPS doesn't allow it, we add it to make this
121 # For generated JNI includes.
122 "+content/public/android/content_jni_headers",
123 "+content/public/android/jar_jni",
126 specific_include_rules = {
127 ".*_browsertest[a-z_]*\.(cc|h|mm)": [
128 # content -> content/shell dependency is disallowed, except browser tests.
129 "+content/shell/browser",
130 "+content/shell/common",