DEPS 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Do NOT add chrome to the list below. We shouldn't be including files
  2. # from src/chrome in src/content.
  3. include_rules = [
  4. # The subdirectories in content/ will manually allow their own include
  5. # directories in content/ so we disallow all of them.
  6. "-content",
  7. "+content/app/strings/grit", # For generated headers
  8. "+content/common",
  9. "+content/grit",
  10. "+content/public/common",
  11. "+content/public/test",
  12. "+content/services/auction_worklet/public",
  13. "+content/test",
  14. "+blink/public/resources/grit",
  15. "+cc",
  16. "-components",
  17. # Content can depend on components that are:
  18. # 1) related to the implementation of the web platform, or,
  19. # 2) shared code between third_party/blink and content
  20. # It should not depend on chrome features or implementation details, i.e. the
  21. # original components/ directories which was code split out from chrome/ to be
  22. # shared with iOS. This includes, but isn't limited to, browser features such
  23. # as autofill or extensions, and chrome implementation details such as
  24. # settings, packaging details, installation or crash reporting.
  25. "+components/browsing_topics/common",
  26. "+components/memory_pressure",
  27. "+components/ml/mojom",
  28. "+components/power_scheduler",
  29. "+components/services/filesystem",
  30. "+components/services/font/public",
  31. "+components/variations",
  32. "+components/value_store",
  33. "+crypto",
  34. "+grit/blink_resources.h",
  35. "+dbus",
  36. "+gpu",
  37. "+media",
  38. "+mojo/core/embedder",
  39. "+mojo/public",
  40. "+net",
  41. "+ppapi",
  42. "+printing",
  43. "+sandbox",
  44. "+services/proxy_resolver/public/mojom",
  45. "+services/service_manager/zygote",
  46. "+skia",
  47. # In general, content/ should not rely on google_apis, since URLs
  48. # and access tokens should usually be provided by the
  49. # embedder.
  50. #
  51. # There are a couple of specific parts of content that are excepted
  52. # from this rule, e.g. content/browser/speech/DEPS. These are cases of
  53. # implementations that are strongly tied to Google servers, i.e. we
  54. # don't expect alternate implementations to be provided by the
  55. # embedder.
  56. "-google_apis",
  57. # Don't allow inclusion of these other libs we shouldn't be calling directly.
  58. "-v8",
  59. "-tools",
  60. # Allow inclusion of third-party code:
  61. "+third_party/angle",
  62. "+third_party/boringssl/src/include",
  63. "+third_party/flac",
  64. "+third_party/mozilla",
  65. "+third_party/ocmock",
  66. "+third_party/re2",
  67. "+third_party/skia",
  68. "+third_party/sqlite",
  69. "+third_party/khronos",
  70. "+third_party/webrtc",
  71. "+third_party/webrtc_overrides",
  72. "+third_party/zlib/google",
  73. "+third_party/blink/public",
  74. "+ui/accelerated_widget_mac",
  75. "+ui/accessibility",
  76. "+ui/android",
  77. # Aura is analogous to Win32 or a Gtk, so it is allowed.
  78. "+ui/aura",
  79. "+ui/base",
  80. "+ui/color",
  81. "+ui/compositor",
  82. "+ui/display",
  83. "+ui/events",
  84. "+ui/gfx",
  85. "+ui/gl",
  86. "+ui/latency",
  87. "+ui/native_theme",
  88. "+ui/resources/grit/ui_resources.h",
  89. "+ui/resources/grit/webui_generated_resources.h",
  90. "+ui/resources/grit/webui_generated_resources_map.h",
  91. "+ui/shell_dialogs",
  92. "+ui/snapshot",
  93. "+ui/strings/grit/ui_strings.h",
  94. "+ui/surface",
  95. "+ui/touch_selection",
  96. "+ui/wm",
  97. # Content knows about grd files, but the specifics of how to get a resource
  98. # given its id is left to the embedder.
  99. "-ui/base/l10n",
  100. "-ui/base/resource",
  101. # These files aren't related to grd, so they're fine.
  102. "+ui/base/l10n/l10n_util_android.h",
  103. "+ui/base/l10n/l10n_util_win.h",
  104. # Content shouldn't depend on views. While we technically don't need this
  105. # line, since the top level DEPS doesn't allow it, we add it to make this
  106. # explicit.
  107. "-ui/views",
  108. "+storage/browser",
  109. "+storage/common",
  110. # For generated JNI includes.
  111. "+content/public/android/content_jni_headers",
  112. "+content/public/android/jar_jni",
  113. ]
  114. specific_include_rules = {
  115. ".*_browsertest[a-z_]*\.(cc|h|mm)": [
  116. # content -> content/shell dependency is disallowed, except browser tests.
  117. "+content/shell/browser",
  118. "+content/shell/common",
  119. ],
  120. }