[email protected] | 4ec7327e | 2008-08-18 23:59:51 | [diff] [blame] | 1 | include_rules = [ |
[email protected] | c2e2b6d | 2013-01-22 02:23:29 | [diff] [blame] | 2 | "+apps", |
enne | 34f6084c | 2017-02-02 22:39:08 | [diff] [blame] | 3 | "+cc/paint", |
[email protected] | a8cf61b | 2009-02-05 17:41:38 | [diff] [blame] | 4 | "+chrome/app", |
erikwright | 0cdddbff | 2015-03-12 18:05:34 | [diff] [blame] | 5 | "+chrome/chrome_watcher", |
thestig | 4a2e88e | 2016-08-27 23:23:51 | [diff] [blame] | 6 | "+chrome/grit", |
jwd | c882e48d | 2016-08-19 00:14:42 | [diff] [blame] | 7 | "+chrome/install_static", |
grt | 6990ce31 | 2017-03-27 12:04:17 | [diff] [blame] | 8 | "+chrome/installer/util", |
Jay Civelli | 8743364b | 2017-11-02 18:14:36 | [diff] [blame] | 9 | "+chrome/services/file_util/public", |
Jay Civelli | 069422f | 2017-11-10 18:55:52 | [diff] [blame] | 10 | "+chrome/services/media_gallery_util/public", |
Jay Civelli | 407c3fc | 2017-12-14 00:25:27 | [diff] [blame] | 11 | "+chrome/services/printing/public", |
Jay Civelli | 66e0d89 | 2017-12-05 01:05:10 | [diff] [blame] | 12 | "+chrome/services/removable_storage_writer/public", |
Jay Civelli | 446d1db | 2017-11-15 00:19:26 | [diff] [blame] | 13 | "+chrome/services/util_win/public", |
| 14 | "+chrome/services/wifi_util_win/public", |
[email protected] | c80b3502 | 2014-03-03 17:01:41 | [diff] [blame] | 15 | "+chrome_elf/blacklist", |
[email protected] | e5890e1 | 2014-02-27 17:15:05 | [diff] [blame] | 16 | "+chrome_elf/chrome_elf_constants.h", |
[email protected] | c80b3502 | 2014-03-03 17:01:41 | [diff] [blame] | 17 | "+chrome_elf/dll_hash", |
[email protected] | 5cf19b9 | 2012-03-21 22:25:05 | [diff] [blame] | 18 | "+chromeos", |
brettw | b1fc1b8 | 2016-02-02 00:19:08 | [diff] [blame] | 19 | "+components", |
Doug Turner | 9dcaf596 | 2017-12-21 04:38:53 | [diff] [blame^] | 20 | "+components/policy/throttle/", |
[email protected] | fd31c221 | 2011-10-17 19:43:43 | [diff] [blame] | 21 | "+content/public/browser", |
Ke He | 0be22ba | 2017-12-18 05:12:38 | [diff] [blame] | 22 | "+content/public/common", |
[email protected] | 94a481b | 2014-03-28 19:41:55 | [diff] [blame] | 23 | "+courgette", |
alexis.menard | 2fe63eaa | 2016-10-13 21:42:43 | [diff] [blame] | 24 | "+device/base", |
[email protected] | 06af6a4 | 2012-12-14 00:16:40 | [diff] [blame] | 25 | "+device/bluetooth", |
mcasas | 4e216e7 | 2016-07-28 21:28:38 | [diff] [blame] | 26 | "+device/geolocation", |
[email protected] | 4b6de89 | 2013-01-04 18:06:06 | [diff] [blame] | 27 | "+device/media_transfer_protocol", |
thestig | 5e9352a | 2016-04-04 21:44:04 | [diff] [blame] | 28 | "+device/usb", |
mthiesse | 4cb28914 | 2017-04-25 23:57:33 | [diff] [blame] | 29 | "+device/vr/features/features.h", |
[email protected] | 993da5e | 2013-03-23 21:25:16 | [diff] [blame] | 30 | "+extensions/browser", |
[email protected] | 885c0e9 | 2012-11-13 20:27:42 | [diff] [blame] | 31 | "+extensions/common", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 32 | "+extensions/components/javascript_dialog_extensions_client", |
brettw | 00899e6 | 2016-11-12 02:10:17 | [diff] [blame] | 33 | "+extensions/features", |
mukai | 4245dfe8 | 2014-09-05 17:40:51 | [diff] [blame] | 34 | "+extensions/grit", |
yoz | e8dc2f1 | 2014-09-09 23:16:32 | [diff] [blame] | 35 | "+extensions/test", |
[email protected] | 83c2950 | 2012-08-22 19:34:48 | [diff] [blame] | 36 | "+google/cacheinvalidation", # Sync invalidation API protobuf files. |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 37 | "+google_apis", |
[email protected] | cec9984 | 2012-02-10 03:24:23 | [diff] [blame] | 38 | "+google_update", |
[email protected] | b4d08ea | 2012-05-24 19:26:57 | [diff] [blame] | 39 | "+installer_util_strings", # For generated headers |
[email protected] | 1249f32 | 2013-10-23 21:03:16 | [diff] [blame] | 40 | "+jni", |
rockot | 73b9848f | 2017-02-15 18:58:02 | [diff] [blame] | 41 | "+mash/public/interfaces", |
dalecurtis | 1620bd3a | 2015-04-28 20:26:29 | [diff] [blame] | 42 | "+media/audio", # For media audio hang monitor. |
[email protected] | e2e8e32 | 2012-09-12 04:37:02 | [diff] [blame] | 43 | "+media/base", # For media switches |
xhwang | c3a252b | 2016-05-23 02:35:48 | [diff] [blame] | 44 | "+media/cdm/cdm_paths.h", |
yhirano | bbea627 | 2015-09-17 07:09:03 | [diff] [blame] | 45 | "+media/midi", # For midi switches |
alokp | 6ecb238 | 2016-01-27 00:40:00 | [diff] [blame] | 46 | "+media/mojo", # For mojo media services. |
[email protected] | 1b4209f | 2011-01-07 00:25:40 | [diff] [blame] | 47 | "+ppapi/c", # For various types. |
[email protected] | b7631cc | 2012-09-15 05:08:38 | [diff] [blame] | 48 | "+ppapi/host", |
[email protected] | 709a847e | 2010-11-10 01:16:11 | [diff] [blame] | 49 | "+ppapi/proxy", |
[email protected] | 8ddc6b7c | 2013-12-12 20:42:06 | [diff] [blame] | 50 | "+ppapi/shared_impl", |
[email protected] | 5b7937e | 2010-11-04 23:37:18 | [diff] [blame] | 51 | "+rlz", |
[email protected] | 18149178 | 2012-07-18 00:59:15 | [diff] [blame] | 52 | "+sandbox/win/src", # The path doesn't say it, but this is the Windows sandbox. |
Jay Civelli | d8dc7c6 | 2017-11-02 02:10:41 | [diff] [blame] | 53 | "+services/data_decoder/public", |
Ke He | 0be22ba | 2017-12-18 05:12:38 | [diff] [blame] | 54 | "+services/device/public", |
Colin Blundell | e89886a | 2017-06-12 11:26:56 | [diff] [blame] | 55 | "+services/identity/public", |
Steven Holte | e830e7e | 2017-11-07 23:47:30 | [diff] [blame] | 56 | "+services/metrics/metrics_mojo_service.h", |
Mounir Lamouri | fd9dcefa | 2017-07-06 10:26:55 | [diff] [blame] | 57 | "+services/metrics/public", |
Randy Smith | 58eab19b | 2017-11-13 21:44:25 | [diff] [blame] | 58 | "+services/network/public", |
rockot | 905e389 | 2017-02-18 10:47:11 | [diff] [blame] | 59 | "+services/preferences/public/cpp", |
jonross | 3b1b258 | 2016-12-21 16:21:21 | [diff] [blame] | 60 | "+services/preferences/public/interfaces", |
Jay Civelli | 2df2464 | 2017-10-09 20:22:28 | [diff] [blame] | 61 | "+services/proxy_resolver", # Android runs the packaged proxy resolver |
| 62 | # service in process and needs impl access. |
| 63 | "+services/proxy_resolver/public/interfaces", |
oysteine | 8c8d3b70 | 2017-05-18 15:18:17 | [diff] [blame] | 64 | "+services/resource_coordinator/public/cpp", |
Erik Chen | 173bf304 | 2017-07-31 06:06:21 | [diff] [blame] | 65 | "+services/resource_coordinator/public/interfaces", |
rockot | 734fb66 | 2016-10-15 16:41:30 | [diff] [blame] | 66 | "+services/service_manager", |
xianglu | b38f05e | 2017-01-11 20:49:52 | [diff] [blame] | 67 | "+services/shape_detection/public/interfaces", |
mfomitchev | a872e76 | 2017-07-14 06:03:44 | [diff] [blame] | 68 | "+services/ui/common", |
xianglu | b38f05e | 2017-01-11 20:49:52 | [diff] [blame] | 69 | "+services/ui/public", |
mfomitchev | a872e76 | 2017-07-14 06:03:44 | [diff] [blame] | 70 | "+services/ui/service.h", |
[email protected] | 5b7937e | 2010-11-04 23:37:18 | [diff] [blame] | 71 | "+skia/ext", |
tfarina | 29a3a174 | 2016-10-28 18:47:33 | [diff] [blame] | 72 | "+third_party/boringssl/src/include", |
manzagop | a5d6688d | 2016-10-25 20:16:03 | [diff] [blame] | 73 | "+third_party/crashpad", |
[email protected] | 4404e5b | 2011-08-16 19:08:46 | [diff] [blame] | 74 | "+third_party/cros_system_api", |
Johann | e0cc690 | 2017-11-16 00:23:50 | [diff] [blame] | 75 | "+third_party/libaom/av1_features.h", |
Steven Holte | f9d5ed6 | 2017-10-21 02:02:30 | [diff] [blame] | 76 | "+third_party/metrics_proto", |
[email protected] | 895701a | 2012-09-13 10:07:34 | [diff] [blame] | 77 | |
jamescook | 1f91eac1 | 2017-05-30 17:27:32 | [diff] [blame] | 78 | # Code under //ash runs out-of-process under mustash (chrome --mash) so it |
| 79 | # must be accessed via mojo interfaces in //ash/public/interfaces. See |
| 80 | # //ash/README.md. |
| 81 | "-ash", |
| 82 | "+ash/public", |
jamescook | 1f91eac1 | 2017-05-30 17:27:32 | [diff] [blame] | 83 | |
[email protected] | 1249f32 | 2013-10-23 21:03:16 | [diff] [blame] | 84 | # chrome only needs switches from cc. All usage of the compositor is from |
| 85 | # content. Definitely don't include generic stuff from cc/base here, if this |
| 86 | # is needed these files need to move to base/ |
| 87 | "+cc/base/switches.h", |
| 88 | |
[email protected] | bbe2f51 | 2013-08-16 12:54:39 | [diff] [blame] | 89 | # Unsafe to use from //chrome, see http://goo.gl/QQG5wo |
| 90 | "-content/public/test/test_browser_context.h", |
| 91 | |
pilgrim | e92c5fcd | 2014-09-10 23:31:23 | [diff] [blame] | 92 | "+storage/browser", |
pilgrim | 1633055 | 2014-09-10 01:32:22 | [diff] [blame] | 93 | "+storage/common", |
[email protected] | c4298d0 | 2013-05-20 05:42:52 | [diff] [blame] | 94 | |
[email protected] | 81963ad | 2012-05-17 19:25:03 | [diff] [blame] | 95 | "-chrome/browser/ui/views", |
Greg Thompson | 0d974c4 | 2017-11-03 16:17:26 | [diff] [blame] | 96 | "+chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h", |
[email protected] | e8b6ca0 | 2013-07-10 18:00:51 | [diff] [blame] | 97 | "+chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h", |
estade | d3aa0e8 | 2016-02-17 22:55:21 | [diff] [blame] | 98 | "+chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h", |
ananta | 5ecf11b | 2017-04-29 00:45:10 | [diff] [blame] | 99 | "+chrome/browser/ui/views/extensions/request_file_system_dialog_view.h", |
Greg Thompson | 0d974c4 | 2017-11-03 16:17:26 | [diff] [blame] | 100 | "+chrome/browser/ui/views/try_chrome_dialog_win/try_chrome_dialog.h", |
[email protected] | 81963ad | 2012-05-17 19:25:03 | [diff] [blame] | 101 | |
boliu | 60df207 | 2015-10-26 22:55:19 | [diff] [blame] | 102 | # Explicitly disallow using SyncMessageFilter to prevent browser from |
| 103 | # sending synchronous IPC messages on non-UI threads. |
| 104 | "-ipc/ipc_sync_message_filter.h", |
| 105 | |
mmenke | f73a512 | 2017-07-13 23:27:39 | [diff] [blame] | 106 | # Allows in-process use of NetworkService for URLRequestContext configuration. |
| 107 | # Should be removed once the actual network service ships. |
| 108 | "+content/public/network", |
| 109 | |
Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 110 | "+mash/quick_launch/public/interfaces", |
| 111 | |
[email protected] | 4ec7327e | 2008-08-18 23:59:51 | [diff] [blame] | 112 | # Other libraries. |
tfarina | c28691d | 2015-07-23 19:22:51 | [diff] [blame] | 113 | "+libxml", |
[email protected] | 17a444c | 2014-06-24 01:44:32 | [diff] [blame] | 114 | "+third_party/google_toolbox_for_mac/src", |
[email protected] | 8bbf619 | 2013-07-18 11:14:04 | [diff] [blame] | 115 | "+third_party/icu/source/common/unicode", |
| 116 | "+third_party/icu/source/i18n/unicode", |
[email protected] | f82ef06 | 2012-04-27 17:52:54 | [diff] [blame] | 117 | "+third_party/leveldatabase", |
tfarina | c28691d | 2015-07-23 19:22:51 | [diff] [blame] | 118 | "+third_party/libxml", |
[email protected] | 17a444c | 2014-06-24 01:44:32 | [diff] [blame] | 119 | "+third_party/mozilla", # Mozilla interface headers. |
miguelg | dbb2e23 | 2016-10-14 18:50:13 | [diff] [blame] | 120 | "+third_party/ocmock/gtest_support.h", |
[email protected] | 3828d6f | 2011-02-24 18:32:21 | [diff] [blame] | 121 | "+third_party/protobuf/src/google/protobuf", |
[email protected] | 4728ca8 | 2012-08-24 10:39:59 | [diff] [blame] | 122 | "+third_party/re2", |
[email protected] | b84ee6e | 2014-03-15 22:51:54 | [diff] [blame] | 123 | "+third_party/smhasher", |
[email protected] | 2b733b3 | 2011-09-22 06:18:24 | [diff] [blame] | 124 | "+third_party/sqlite", |
[email protected] | 537c638d | 2013-07-04 00:49:19 | [diff] [blame] | 125 | "+third_party/zlib", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 126 | |
| 127 | # No inclusion of WebKit from the browser, other than strictly enum/POD, |
| 128 | # header-only types, and some selected common code. |
| 129 | "-third_party/WebKit", |
Luna Lu | 2e71399 | 2017-11-07 01:45:58 | [diff] [blame] | 130 | "+third_party/WebKit/common/feature_policy/feature_policy_feature.h", |
kinuko | ed1ed1d | 2017-02-08 09:13:43 | [diff] [blame] | 131 | "+third_party/WebKit/public/platform/WebCache.h", |
mlamouri | 1239f9a | 2016-04-18 18:15:10 | [diff] [blame] | 132 | "+third_party/WebKit/public/platform/WebDisplayMode.h", |
csharrison | b9a657d | 2016-04-14 00:41:40 | [diff] [blame] | 133 | "+third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h", |
dtapuska | 836e1f9 | 2016-11-15 00:38:06 | [diff] [blame] | 134 | "+third_party/WebKit/public/platform/WebGestureEvent.h", |
| 135 | "+third_party/WebKit/public/platform/WebInputEvent.h", |
dtapuska | a794bd081 | 2017-01-06 15:22:55 | [diff] [blame] | 136 | "+third_party/WebKit/public/platform/WebMouseEvent.h", |
dtapuska | 234bb451 | 2016-12-19 21:46:18 | [diff] [blame] | 137 | "+third_party/WebKit/public/platform/WebMouseWheelEvent.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 138 | "+third_party/WebKit/public/platform/WebReferrerPolicy.h", |
estark | 47ba9c7d | 2016-10-11 15:40:11 | [diff] [blame] | 139 | "+third_party/WebKit/public/platform/WebSecurityStyle.h", |
Michael Giuffrida | be99dae | 2017-12-08 01:35:36 | [diff] [blame] | 140 | "+third_party/WebKit/public/platform/WebSuddenTerminationDisablerType.h", |
miguelg | 163fc15 | 2016-05-20 18:02:44 | [diff] [blame] | 141 | "+third_party/WebKit/public/platform/modules/notifications/WebNotificationConstants.h", |
avayvod | b485de7 | 2016-11-11 07:31:31 | [diff] [blame] | 142 | "+third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h", |
mlamouri | 957082d | 2015-06-11 15:12:48 | [diff] [blame] | 143 | "+third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h", |
brettw | cb4ab75a | 2016-11-02 19:25:59 | [diff] [blame] | 144 | "+third_party/WebKit/public/public_features.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 145 | "+third_party/WebKit/public/web/WebContextMenuData.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 146 | "+third_party/WebKit/public/web/WebFindOptions.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 147 | "+third_party/WebKit/public/web/WebMediaPlayerAction.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 148 | "+third_party/WebKit/public/web/WebPluginAction.h", |
mark a. foltz | ef394fce | 2017-10-21 09:11:02 | [diff] [blame] | 149 | "+third_party/WebKit/public/web/WebPresentationReceiverFlags.h", |
[email protected] | af6e075 | 2013-06-21 15:50:38 | [diff] [blame] | 150 | "+third_party/WebKit/public/web/WebTextDirection.h", |
Charles Harrison | 8c5247ff | 2017-10-13 19:43:32 | [diff] [blame] | 151 | "+third_party/WebKit/public/web/WebTriggeringEventInfo.h", |
Kinuko Yasuda | 74702f9 | 2017-07-31 03:27:53 | [diff] [blame] | 152 | |
| 153 | # Unlike other WebKit directories WebKit/common is for the files that |
| 154 | # are commonly referenced by renderer-side and browser-side code, and |
| 155 | # does not use Blink types like WTF. |
| 156 | "+third_party/WebKit/common", |
Scott Violet | d4b21d25 | 2017-08-11 17:27:36 | [diff] [blame] | 157 | |
Kenichi Ishibashi | 16309bb | 2017-11-07 06:21:46 | [diff] [blame] | 158 | # Allow mojo generated files in WebKit. These files use STL types and |
| 159 | # don't use WTF types. |
| 160 | "+third_party/WebKit/public/platform/web_feature.mojom.h", |
| 161 | "+third_party/WebKit/public/platform/media_engagement.mojom.h", |
| 162 | "+third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom.h", |
| 163 | "+third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom.h", |
| 164 | "+third_party/WebKit/public/platform/modules/insecure_input/insecure_input_service.mojom.h", |
| 165 | "+third_party/WebKit/public/platform/modules/installation/installation.mojom.h", |
| 166 | "+third_party/WebKit/public/platform/modules/installedapp/installed_app_provider.mojom.h", |
| 167 | "+third_party/WebKit/public/platform/modules/payments/payment_app.mojom.h", |
| 168 | "+third_party/WebKit/public/platform/modules/payments/payment_request.mojom.h", |
| 169 | "+third_party/WebKit/public/platform/modules/permissions/permission_status.mojom.h", |
| 170 | "+third_party/WebKit/public/platform/modules/presentation/presentation.mojom.h", |
| 171 | "+third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h", |
| 172 | "+third_party/WebKit/public/platform/oom_intervention.mojom.h", |
| 173 | "+third_party/WebKit/public/platform/site_engagement.mojom.h", |
| 174 | "+third_party/WebKit/public/web/window_features.mojom.h", |
| 175 | |
Scott Violet | d4b21d25 | 2017-08-11 17:27:36 | [diff] [blame] | 176 | # The following restrictions are for ChromeOS and in particular mus/mash where |
| 177 | # Ozone does not run in process. If the linux build transitions to Ozone then |
| 178 | # we likely need to make these restrictions applicable only to ChromeOS files. |
| 179 | "-ui/events/ozone", |
| 180 | "-ui/ozone", |
| 181 | "+ui/ozone/public/ozone_switches.h", |
| 182 | # ui/events/devices is tied with ozone, which is controlled by mus, and |
| 183 | # shouldn't be used by Chrome directly. |
| 184 | "-ui/events/devices", |
| 185 | # Enums and supporting classes or observers that are safe (should be moved to |
| 186 | # services/ui/public/cpp). http://crbug.com/747544. |
| 187 | "+ui/events/devices/device_hotplug_event_observer.h", |
| 188 | "+ui/events/devices/input_device.h", |
| 189 | "+ui/events/devices/input_device_event_observer.h", |
Scott Violet | 7cbe201 | 2017-08-19 00:54:30 | [diff] [blame] | 190 | "+ui/events/devices/input_device_manager.h", |
Scott Violet | d4b21d25 | 2017-08-11 17:27:36 | [diff] [blame] | 191 | "+ui/events/devices/stylus_state.h", |
| 192 | "+ui/events/devices/touchscreen_device.h", |
Scott Violet | d4b21d25 | 2017-08-11 17:27:36 | [diff] [blame] | 193 | |
| 194 | # Only used by X11 (non-ChromeOS) code, which can use X directly. |
| 195 | "+ui/events/devices/x11", |
[email protected] | 4ec7327e | 2008-08-18 23:59:51 | [diff] [blame] | 196 | ] |
Scott Violet | d4b21d25 | 2017-08-11 17:27:36 | [diff] [blame] | 197 | |
jamescook | 1f91eac1 | 2017-05-30 17:27:32 | [diff] [blame] | 198 | specific_include_rules = { |
| 199 | # TODO(mash): Remove. http://crbug.com/678705 |
| 200 | "fullscreen_chromeos\.cc": [ |
| 201 | "+ash/root_window_controller.h", |
| 202 | "+ash/shell.h", |
Scott Violet | 776edf8 | 2017-09-29 02:03:01 | [diff] [blame] | 203 | ], |
| 204 | "mash_service_registry.cc": [ |
| 205 | "+mash/quick_launch/quick_launch.h", |
F#m | ad6eceaf | 2017-11-17 10:58:01 | [diff] [blame] | 206 | ], |
| 207 | "display_info_provider_chromeos_unittest.cc": [ |
| 208 | "+ui/events/devices/touch_device_transform.h" |
jamescook | 1f91eac1 | 2017-05-30 17:27:32 | [diff] [blame] | 209 | ] |
| 210 | } |