• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Do NOT add chrome or components to the list below.  We shouldn't be
2# including files from src/chrome or src/components in src/content.
3include_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/common",
8  "+content/port/common",
9  "+content/public/common",
10  "+content/public/test",
11  "+content/shell",  # for content_browsertests
12  "+content/test",
13
14  # content isn't tied to prefs so that other embedders are able to pick
15  # different ways of storing their preferences. Also, this is to avoid prefs
16  # being used as a parallel API to the Content API.
17  "-base/prefs",
18
19  "+cc",
20  # If you want to use any of these files, move them to src/base first.
21  "-cc/base/scoped_ptr_algorithm.h",
22  "-cc/base/scoped_ptr_deque.h",
23  "-cc/base/scoped_ptr_vector.h",
24
25  "+crypto",
26  "+grit/blink_resources.h",
27  "+grit/content_resources.h",
28  "+grit/ui_resources.h",
29  "+grit/ui_strings.h",
30  "+grit/webkit_resources.h",
31  "+grit/webkit_strings.h",
32  "+grit/webui_resources.h",
33  "+grit/webui_resources_map.h",
34
35  "+dbus",
36  "+gpu",
37  "+net",
38  "+ppapi",
39  "+printing",
40  "+sandbox",
41  "+skia",
42
43  # In general, content/ should not rely on google_apis, since URLs
44  # and access tokens should usually be provided by the
45  # embedder.
46  #
47  # There are a couple of specific parts of content that are excepted
48  # from this rule, see content/browser/speech/DEPS and
49  # content/browser/geolocation/DEPS.  Both of these are cases of
50  # implementations that are strongly tied to Google servers, i.e. we
51  # don't expect alternate implementations to be provided by the
52  # embedder.
53  "-google_apis",
54
55  # Don't allow inclusion of these other libs we shouldn't be calling directly.
56  "-v8",
57  "-tools",
58
59  # Allow inclusion of third-party code:
60  "+third_party/angle",
61  "+third_party/flac",
62  "+third_party/libjingle",
63  "+third_party/mozilla",
64  "+third_party/npapi/bindings",
65  "+third_party/skia",
66  "+third_party/sqlite",
67  "+third_party/tcmalloc",
68  "+third_party/khronos",
69  "+third_party/webrtc",
70  "+third_party/zlib/google",
71  "+third_party/WebKit/public/platform",
72  "+third_party/WebKit/public/web",
73
74  "+ui/android",
75  # Aura is analogous to Win32 or a Gtk, so it is allowed.
76  "+ui/aura",
77  "+ui/base",
78  "+ui/compositor",
79  "+ui/events",
80  "+ui/gfx",
81  "+ui/gl",
82  "+ui/native_theme",
83  "+ui/shell_dialogs",
84  "+ui/snapshot",
85  "+ui/surface",
86  # Content knows about grd files, but the specifics of how to get a resource
87  # given its id is left to the embedder.
88  "-ui/base/l10n",
89  "-ui/base/resource",
90  # This file isn't related to grd, so it's fine.
91  "+ui/base/l10n/l10n_util_win.h",
92
93  # Content shouldn't depend on views. While we technically don't need this
94  # line, since the top level DEPS doesn't allow it, we add it to make this
95  # explicit.
96  "-ui/views",
97
98  "+webkit",
99
100  # For generated JNI includes.
101  "+jni",
102]
103