blob: d00ca44e0b7d3927e3481397c6d4eec254244965 [file] [log] [blame]
[email protected]4ec7327e2008-08-18 23:59:511include_rules = [
[email protected]c2e2b6d2013-01-22 02:23:292 "+apps",
enne34f6084c2017-02-02 22:39:083 "+cc/paint",
[email protected]a8cf61b2009-02-05 17:41:384 "+chrome/app",
erikwright0cdddbff2015-03-12 18:05:345 "+chrome/chrome_watcher",
thestig4a2e88e2016-08-27 23:23:516 "+chrome/grit",
jwdc882e48d2016-08-19 00:14:427 "+chrome/install_static",
grt6990ce312017-03-27 12:04:178 "+chrome/installer/util",
Xi Chengb7c35726b2018-04-25 04:55:149 "+chrome/notification_helper/notification_helper_constants.h",
Jay Civelli8743364b2017-11-02 18:14:3610 "+chrome/services/file_util/public",
Jay Civelli069422f2017-11-10 18:55:5211 "+chrome/services/media_gallery_util/public",
Jay Civelli407c3fc2017-12-14 00:25:2712 "+chrome/services/printing/public",
Jay Civelli66e0d892017-12-05 01:05:1013 "+chrome/services/removable_storage_writer/public",
Jay Civelli446d1db2017-11-15 00:19:2614 "+chrome/services/util_win/public",
15 "+chrome/services/wifi_util_win/public",
[email protected]c80b35022014-03-03 17:01:4116 "+chrome_elf/blacklist",
[email protected]e5890e12014-02-27 17:15:0517 "+chrome_elf/chrome_elf_constants.h",
[email protected]c80b35022014-03-03 17:01:4118 "+chrome_elf/dll_hash",
[email protected]5cf19b92012-03-21 22:25:0519 "+chromeos",
brettwb1fc1b82016-02-02 00:19:0820 "+components",
Doug Turner9dcaf5962017-12-21 04:38:5321 "+components/policy/throttle/",
[email protected]fd31c2212011-10-17 19:43:4322 "+content/public/browser",
Ke He0be22ba2017-12-18 05:12:3823 "+content/public/common",
[email protected]94a481b2014-03-28 19:41:5524 "+courgette",
alexis.menard2fe63eaa2016-10-13 21:42:4325 "+device/base",
[email protected]06af6a42012-12-14 00:16:4026 "+device/bluetooth",
Adam Langley573d3ac2018-04-28 00:32:1327 "+device/fido",
mcasas4e216e72016-07-28 21:28:3828 "+device/geolocation",
[email protected]4b6de892013-01-04 18:06:0629 "+device/media_transfer_protocol",
thestig5e9352a2016-04-04 21:44:0430 "+device/usb",
Scott Violetc8240b02018-03-08 22:03:5931 "+device/vr/buildflags/buildflags.h",
[email protected]993da5e2013-03-23 21:25:1632 "+extensions/browser",
[email protected]885c0e92012-11-13 20:27:4233 "+extensions/common",
oshima758abebc2014-11-06 10:55:5034 "+extensions/components/javascript_dialog_extensions_client",
Scott Violetc8240b02018-03-08 22:03:5935 "+extensions/buildflags",
mukai4245dfe82014-09-05 17:40:5136 "+extensions/grit",
yoze8dc2f12014-09-09 23:16:3237 "+extensions/test",
[email protected]83c29502012-08-22 19:34:4838 "+google/cacheinvalidation", # Sync invalidation API protobuf files.
[email protected]6386cf52012-09-07 04:26:3739 "+google_apis",
[email protected]cec99842012-02-10 03:24:2340 "+google_update",
[email protected]b4d08ea2012-05-24 19:26:5741 "+installer_util_strings", # For generated headers
[email protected]1249f322013-10-23 21:03:1642 "+jni",
Ken Rockot388ba4fc2018-02-10 17:23:4143 "+mash/public/mojom",
dalecurtis1620bd3a2015-04-28 20:26:2944 "+media/audio", # For media audio hang monitor.
[email protected]e2e8e322012-09-12 04:37:0245 "+media/base", # For media switches
xhwangc3a252b2016-05-23 02:35:4846 "+media/cdm/cdm_paths.h",
Xiangjun Zhang3aafe302018-02-07 20:10:4047 "+media/capture",
yhiranobbea6272015-09-17 07:09:0348 "+media/midi", # For midi switches
alokp6ecb2382016-01-27 00:40:0049 "+media/mojo", # For mojo media services.
Saman Sami2acabd12018-03-10 00:51:0950 "+media/renderers",
[email protected]1b4209f2011-01-07 00:25:4051 "+ppapi/c", # For various types.
[email protected]b7631cc2012-09-15 05:08:3852 "+ppapi/host",
[email protected]709a847e2010-11-10 01:16:1153 "+ppapi/proxy",
[email protected]8ddc6b7c2013-12-12 20:42:0654 "+ppapi/shared_impl",
[email protected]5b7937e2010-11-04 23:37:1855 "+rlz",
[email protected]181491782012-07-18 00:59:1556 "+sandbox/win/src", # The path doesn't say it, but this is the Windows sandbox.
Olga Sharonovaa234a0a2018-02-16 11:12:2357 "+services/audio/public",
Jay Civellid8dc7c62017-11-02 02:10:4158 "+services/data_decoder/public",
Ke He0be22ba2017-12-18 05:12:3859 "+services/device/public",
Colin Blundelle89886a2017-06-12 11:26:5660 "+services/identity/public",
Steven Holtee830e7e2017-11-07 23:47:3061 "+services/metrics/metrics_mojo_service.h",
Mounir Lamourifd9dcefa2017-07-06 10:26:5562 "+services/metrics/public",
John Abd-El-Malek89c02ae2018-02-01 01:56:1963 "+services/network/ignore_errors_cert_verifier.h",
John Abd-El-Malek8e82a322018-01-31 20:30:4764 "+services/network/network_service.h",
Ken Rockot7d0a5ff62018-04-26 21:46:5165 "+services/network/public",
Mark Pilgrim9c330c2212018-04-27 15:35:2766 "+services/network/test",
67 "+services/network/url_request_context_owner.h",
John Abd-El-Malek8e82a322018-01-31 20:30:4768 "+services/network/url_request_context_builder_mojo.h",
rockot905e3892017-02-18 10:47:1169 "+services/preferences/public/cpp",
Ken Rockotf7f533e2018-02-11 02:21:3370 "+services/preferences/public/mojom",
Jay Civelli2df24642017-10-09 20:22:2871 "+services/proxy_resolver", # Android runs the packaged proxy resolver
72 # service in process and needs impl access.
Ken Rockot26cf4742018-02-11 04:10:4073 "+services/proxy_resolver/public/mojom",
oysteine8c8d3b702017-05-18 15:18:1774 "+services/resource_coordinator/public/cpp",
Ken Rockot95c888a42018-02-11 05:54:1175 "+services/resource_coordinator/public/mojom",
Matt Giuca35f71332018-05-01 05:28:2376 "+services/service_manager",
Ken Rockotd7e999b2018-02-11 15:48:2177 "+services/shape_detection/public/mojom",
mfomitcheva872e762017-07-14 06:03:4478 "+services/ui/common",
xianglub38f05e2017-01-11 20:49:5279 "+services/ui/public",
mfomitcheva872e762017-07-14 06:03:4480 "+services/ui/service.h",
Saman Sami2acabd12018-03-10 00:51:0981 "+services/viz/privileged",
[email protected]5b7937e2010-11-04 23:37:1882 "+skia/ext",
tfarina29a3a1742016-10-28 18:47:3383 "+third_party/boringssl/src/include",
manzagopa5d6688d2016-10-25 20:16:0384 "+third_party/crashpad",
[email protected]4404e5b2011-08-16 19:08:4685 "+third_party/cros_system_api",
Scott Violet3ac4f592018-04-18 21:56:4486 "+third_party/libaom/av1_buildflags.h",
Steven Holtef9d5ed62017-10-21 02:02:3087 "+third_party/metrics_proto",
[email protected]895701a2012-09-13 10:07:3488
Scott Violet8ff9c302018-02-22 22:28:3589 # Code under //ash runs out-of-process in mash so it must be accessed via mojo
90 # interfaces in //ash/public/interfaces. See //ash/README.md.
jamescook1f91eac12017-05-30 17:27:3291 "-ash",
92 "+ash/public",
James Cookd89f32b2018-02-14 18:21:3193 "+ash/components/quick_launch/public/mojom",
jamescook1f91eac12017-05-30 17:27:3294
Evan Stade196ec042018-03-13 19:44:3695 # The message center may not exist, or may run out of process (in mash).
96 "-ui/message_center",
97 "+ui/message_center/public",
98
[email protected]1249f322013-10-23 21:03:1699 # chrome only needs switches from cc. All usage of the compositor is from
100 # content. Definitely don't include generic stuff from cc/base here, if this
101 # is needed these files need to move to base/
102 "+cc/base/switches.h",
103
[email protected]bbe2f512013-08-16 12:54:39104 # Unsafe to use from //chrome, see http://goo.gl/QQG5wo
105 "-content/public/test/test_browser_context.h",
106
pilgrime92c5fcd2014-09-10 23:31:23107 "+storage/browser",
pilgrim16330552014-09-10 01:32:22108 "+storage/common",
[email protected]c4298d02013-05-20 05:42:52109
[email protected]81963ad2012-05-17 19:25:03110 "-chrome/browser/ui/views",
Greg Thompson0d974c42017-11-03 16:17:26111 "+chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h",
[email protected]e8b6ca02013-07-10 18:00:51112 "+chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h",
estaded3aa0e82016-02-17 22:55:21113 "+chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h",
ananta5ecf11b2017-04-29 00:45:10114 "+chrome/browser/ui/views/extensions/request_file_system_dialog_view.h",
Greg Thompson0d974c42017-11-03 16:17:26115 "+chrome/browser/ui/views/try_chrome_dialog_win/try_chrome_dialog.h",
[email protected]81963ad2012-05-17 19:25:03116
boliu60df2072015-10-26 22:55:19117 # Explicitly disallow using SyncMessageFilter to prevent browser from
118 # sending synchronous IPC messages on non-UI threads.
119 "-ipc/ipc_sync_message_filter.h",
120
mmenkef73a5122017-07-13 23:27:39121 # Allows in-process use of NetworkService for URLRequestContext configuration.
122 # Should be removed once the actual network service ships.
123 "+content/public/network",
124
[email protected]4ec7327e2008-08-18 23:59:51125 # Other libraries.
tfarinac28691d2015-07-23 19:22:51126 "+libxml",
[email protected]17a444c2014-06-24 01:44:32127 "+third_party/google_toolbox_for_mac/src",
[email protected]8bbf6192013-07-18 11:14:04128 "+third_party/icu/source/common/unicode",
129 "+third_party/icu/source/i18n/unicode",
[email protected]f82ef062012-04-27 17:52:54130 "+third_party/leveldatabase",
tfarinac28691d2015-07-23 19:22:51131 "+third_party/libxml",
[email protected]17a444c2014-06-24 01:44:32132 "+third_party/mozilla", # Mozilla interface headers.
miguelgdbb2e232016-10-14 18:50:13133 "+third_party/ocmock/gtest_support.h",
[email protected]3828d6f2011-02-24 18:32:21134 "+third_party/protobuf/src/google/protobuf",
[email protected]4728ca82012-08-24 10:39:59135 "+third_party/re2",
[email protected]b84ee6e2014-03-15 22:51:54136 "+third_party/smhasher",
[email protected]2b733b32011-09-22 06:18:24137 "+third_party/sqlite",
[email protected]537c638d2013-07-04 00:49:19138 "+third_party/zlib",
[email protected]af6e0752013-06-21 15:50:38139
Kinuko Yasuda20083062018-02-10 02:13:30140 # No inclusion of WebKit from the browser, other than the ones in
Kinuko Yasuda6f031052018-02-19 15:25:27141 # WebKit/public/{mojom,common}, or the ones that are strictly enum/POD,
[email protected]af6e0752013-06-21 15:50:38142 # header-only types, and some selected common code.
Blink Reformata30d4232018-04-07 15:31:06143 "-third_party/blink",
144 "+third_party/blink/public/common",
145 "+third_party/blink/public/mojom",
146 "+third_party/blink/public/platform/web_cache.h",
Alan Cutter40b34a572018-05-01 04:29:29147 "+third_party/blink/public/platform/web_display_mode.h",
Blink Reformata30d4232018-04-07 15:31:06148 "+third_party/blink/public/platform/web_loading_behavior_flag.h",
149 "+third_party/blink/public/platform/web_gesture_event.h",
150 "+third_party/blink/public/platform/web_input_event.h",
151 "+third_party/blink/public/platform/web_mouse_event.h",
152 "+third_party/blink/public/platform/web_mouse_wheel_event.h",
153 "+third_party/blink/public/platform/web_referrer_policy.h",
154 "+third_party/blink/public/platform/web_security_style.h",
Katie D8236c3a32018-04-24 18:49:27155 "+third_party/blink/public/platform/web_speech_synthesis_constants.h",
Blink Reformata30d4232018-04-07 15:31:06156 "+third_party/blink/public/platform/web_sudden_termination_disabler_type.h",
157 "+third_party/blink/public/platform/modules/notifications/web_notification_constants.h",
158 "+third_party/blink/public/platform/modules/remoteplayback/web_remote_playback_availability.h",
159 "+third_party/blink/public/platform/modules/screen_orientation/web_screen_orientation_lock_type.h",
160 "+third_party/blink/public/public_buildflags.h",
161 "+third_party/blink/public/web/web_context_menu_data.h",
162 "+third_party/blink/public/web/web_find_options.h",
Dave Tapuska3ed44192018-05-01 18:53:30163 "+third_party/blink/public/web/web_fullscreen_options.h",
Blink Reformata30d4232018-04-07 15:31:06164 "+third_party/blink/public/web/web_media_player_action.h",
165 "+third_party/blink/public/web/web_plugin_action.h",
166 "+third_party/blink/public/web/web_presentation_receiver_flags.h",
167 "+third_party/blink/public/web/web_text_direction.h",
168 "+third_party/blink/public/web/web_triggering_event_info.h",
Kinuko Yasuda74702f92017-07-31 03:27:53169
Kenichi Ishibashi16309bb2017-11-07 06:21:46170 # Allow mojo generated files in WebKit. These files use STL types and
171 # don't use WTF types.
Becca Hughes3da69b742018-04-13 19:05:06172 "+third_party/blink/public/platform/autoplay.mojom.h",
Blink Reformata30d4232018-04-07 15:31:06173 "+third_party/blink/public/platform/web_feature.mojom.h",
Blink Reformata30d4232018-04-07 15:31:06174 "+third_party/blink/public/platform/modules/app_banner/app_banner.mojom.h",
175 "+third_party/blink/public/platform/modules/budget_service/budget_service.mojom.h",
176 "+third_party/blink/public/platform/modules/insecure_input/insecure_input_service.mojom.h",
177 "+third_party/blink/public/platform/modules/installation/installation.mojom.h",
178 "+third_party/blink/public/platform/modules/installedapp/installed_app_provider.mojom.h",
179 "+third_party/blink/public/platform/modules/payments/payment_app.mojom.h",
180 "+third_party/blink/public/platform/modules/payments/payment_request.mojom.h",
181 "+third_party/blink/public/platform/modules/permissions/permission_status.mojom.h",
182 "+third_party/blink/public/platform/modules/presentation/presentation.mojom.h",
183 "+third_party/blink/public/platform/modules/webauth/authenticator.mojom.h",
184 "+third_party/blink/public/platform/modules/webshare/webshare.mojom.h",
185 "+third_party/blink/public/platform/oom_intervention.mojom.h",
186 "+third_party/blink/public/platform/site_engagement.mojom.h",
187 "+third_party/blink/public/web/window_features.mojom.h",
Kenichi Ishibashi16309bb2017-11-07 06:21:46188
Scott Violetd4b21d252017-08-11 17:27:36189 # The following restrictions are for ChromeOS and in particular mus/mash where
190 # Ozone does not run in process. If the linux build transitions to Ozone then
191 # we likely need to make these restrictions applicable only to ChromeOS files.
192 "-ui/events/ozone",
193 "-ui/ozone",
194 "+ui/ozone/public/ozone_switches.h",
195 # ui/events/devices is tied with ozone, which is controlled by mus, and
196 # shouldn't be used by Chrome directly.
197 "-ui/events/devices",
198 # Enums and supporting classes or observers that are safe (should be moved to
199 # services/ui/public/cpp). http://crbug.com/747544.
200 "+ui/events/devices/device_hotplug_event_observer.h",
201 "+ui/events/devices/input_device.h",
202 "+ui/events/devices/input_device_event_observer.h",
Scott Violet7cbe2012017-08-19 00:54:30203 "+ui/events/devices/input_device_manager.h",
Scott Violetd4b21d252017-08-11 17:27:36204 "+ui/events/devices/stylus_state.h",
205 "+ui/events/devices/touchscreen_device.h",
Scott Violetd4b21d252017-08-11 17:27:36206
207 # Only used by X11 (non-ChromeOS) code, which can use X directly.
208 "+ui/events/devices/x11",
[email protected]4ec7327e2008-08-18 23:59:51209]
Scott Violetd4b21d252017-08-11 17:27:36210
jamescook1f91eac12017-05-30 17:27:32211specific_include_rules = {
Scott Violet737fb752018-04-11 15:35:22212 # TODO(mash): see bugs 768439 and 768395.
213 "exo_parts\.cc": [
214 "+ash/shell.h",
215 ],
jamescook1f91eac12017-05-30 17:27:32216 # TODO(mash): Remove. http://crbug.com/678705
217 "fullscreen_chromeos\.cc": [
218 "+ash/root_window_controller.h",
219 "+ash/shell.h",
Scott Violet776edf82017-09-29 02:03:01220 ],
F#mad6eceaf2017-11-17 10:58:01221 "display_info_provider_chromeos_unittest.cc": [
222 "+ui/events/devices/touch_device_transform.h"
Evan Stade196ec042018-03-13 19:44:36223 ],
224 # TODO(estade): the message center is initialized and shut down here, but it
225 # should be the responsibility of code in chrome/browser/notifications/
226 "browser_process_impl.cc": [
227 "+ui/message_center/message_center.h",
228 ],
jamescook1f91eac12017-05-30 17:27:32229}