blob: 4b93438c3edb649bdf31dd2d14d26f34ecdf6e80 [file] [log] [blame]
Mirko Bonadei90490372018-10-26 11:17:471# This is supposed to be a complete list of top-level directories,
2# excepting only api/ itself.
kjellander@webrtc.org94a23f02016-03-17 11:05:363include_rules = [
Mirko Bonadeia418e672018-10-24 11:57:254 "-audio",
5 "-base",
6 "-build",
7 "-buildtools",
8 "-build_overrides",
9 "-call",
10 "-common_audio",
11 "-common_video",
12 "-data",
13 "-examples",
Mirko Bonadei583d6d92018-10-24 13:53:3314 "-ios",
Mirko Bonadeia418e672018-10-24 11:57:2515 "-infra",
16 "-logging",
17 "-media",
18 "-modules",
19 "-out",
20 "-p2p",
21 "-pc",
22 "-resources",
23 "-rtc_base",
24 "-rtc_tools",
25 "-sdk",
26 "-stats",
27 "-style-guide",
28 "-system_wrappers",
29 "-test",
30 "-testing",
31 "-third_party",
32 "-tools",
33 "-tools_webrtc",
34 "-video",
35 "-external/webrtc/webrtc", # Android platform build.
36 "-libyuv",
37 "-common_types.h",
38 "-WebRTC",
kjellander@webrtc.org94a23f02016-03-17 11:05:3639]
40
41specific_include_rules = {
Mirko Bonadeia418e672018-10-24 11:57:2542 # Some internal headers are allowed even in API headers:
43 ".*\.h": [
44 "+rtc_base/checks.h",
45 "+rtc_base/system/rtc_export.h",
Mirko Bonadei054f1852019-11-04 15:31:0846 "+rtc_base/system/rtc_export_template.h",
Sebastian Jansson72bba622018-11-19 10:17:1247 "+rtc_base/units/unit_base.h",
Sebastian Jansson11e55ee2019-03-06 15:58:1848 "+rtc_base/deprecation.h",
Mirko Bonadeia418e672018-10-24 11:57:2549 ],
50
51 "array_view\.h": [
52 "+rtc_base/type_traits.h",
53 ],
54
kwiberg96da0112017-06-30 11:23:2255 # Needed because AudioEncoderOpus is in the wrong place for
56 # backwards compatibilty reasons. See
57 # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
58 "audio_encoder_opus\.h": [
Mirko Bonadei92ea95e2017-09-15 04:47:3159 "+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
kwiberg96da0112017-06-30 11:23:2260 ],
61
Steve Anton10542f22019-01-11 17:11:0062 "async_resolver_factory\.h": [
63 "+rtc_base/async_resolver_interface.h",
Mirko Bonadeia418e672018-10-24 11:57:2564 ],
65
66 "candidate\.h": [
67 "+rtc_base/network_constants.h",
Steve Anton10542f22019-01-11 17:11:0068 "+rtc_base/socket_address.h",
Mirko Bonadeia418e672018-10-24 11:57:2569 ],
70
Steve Anton10542f22019-01-11 17:11:0071 "data_channel_interface\.h": [
72 "+rtc_base/copy_on_write_buffer.h",
73 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2574 ],
75
Bjorn A Mellem05497f22019-08-01 17:48:2076 "data_channel_transport_interface\.h": [
77 "+rtc_base/copy_on_write_buffer.h",
78 ],
79
Steve Anton10542f22019-01-11 17:11:0080 "dtls_transport_interface\.h": [
81 "+rtc_base/ref_count.h",
Harald Alvestrand7061e512019-04-10 15:20:4282 "+rtc_base/ssl_certificate.h",
Harald Alvestrandad88c882018-11-28 15:47:4683 ],
84
Steve Anton10542f22019-01-11 17:11:0085 "dtmf_sender_interface\.h": [
86 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2587 ],
88
89 "fec_controller\.h": [
90 "+modules/include/module_fec_types.h",
91 ],
92
Marina Cioceae3e07bf2020-02-27 15:28:5193 "frame_transformer_interface\.h": [
94 "+rtc_base/ref_count.h",
95 ],
96
Harald Alvestrand98462622019-01-30 13:57:0397 "ice_transport_interface\.h": [
98 "+rtc_base/ref_count.h",
99 ],
100
Mirko Bonadeia418e672018-10-24 11:57:25101 "jsep\.h": [
Steve Anton10542f22019-01-11 17:11:00102 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25103 ],
104
Steve Anton10542f22019-01-11 17:11:00105 "jsep_ice_candidate\.h": [
106 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25107 ],
108
Steve Anton10542f22019-01-11 17:11:00109 "jsep_session_description\.h": [
110 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25111 ],
112
Steve Anton10542f22019-01-11 17:11:00113 "media_stream_interface\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25114 "+modules/audio_processing/include/audio_processing_statistics.h",
Steve Anton10542f22019-01-11 17:11:00115 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25116 ],
117
Patrik Höglund662e31f2019-09-05 12:35:04118 "packet_socket_factory\.h": [
119 "+rtc_base/proxy_info.h",
120 "+rtc_base/async_packet_socket.h",
121 ],
122
Steve Anton10542f22019-01-11 17:11:00123 "peer_connection_factory_proxy\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25124 "+rtc_base/bind.h",
125 ],
126
Steve Anton10542f22019-01-11 17:11:00127 "peer_connection_interface\.h": [
Steve Anton10542f22019-01-11 17:11:00128 "+media/base/media_config.h",
Steve Anton10542f22019-01-11 17:11:00129 "+media/base/media_engine.h",
130 "+p2p/base/port_allocator.h",
Taylor Brandstetter239ac8a2020-07-31 23:07:52131 "+rtc_base/network_monitor_factory.h",
Steve Anton10542f22019-01-11 17:11:00132 "+rtc_base/rtc_certificate.h",
133 "+rtc_base/rtc_certificate_generator.h",
134 "+rtc_base/socket_address.h",
135 "+rtc_base/ssl_certificate.h",
136 "+rtc_base/ssl_stream_adapter.h",
Steve Antonbba675d2018-12-27 19:15:19137 ],
138
Yves Gerey3e707812018-11-28 15:47:49139 "proxy\.h": [
Steve Antonbba675d2018-12-27 19:15:19140 "+rtc_base/event.h",
Steve Anton10542f22019-01-11 17:11:00141 "+rtc_base/message_handler.h", # Inherits from it.
Steve Anton10542f22019-01-11 17:11:00142 "+rtc_base/ref_counted_object.h",
Steve Antonbba675d2018-12-27 19:15:19143 "+rtc_base/thread.h",
Yves Gerey3e707812018-11-28 15:47:49144 ],
145
Steve Anton10542f22019-01-11 17:11:00146 "ref_counted_base\.h": [
147 "+rtc_base/constructor_magic.h",
148 "+rtc_base/ref_count.h",
149 "+rtc_base/ref_counter.h",
Mirko Bonadeia418e672018-10-24 11:57:25150 ],
151
Steve Anton10542f22019-01-11 17:11:00152 "rtc_error\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25153 "+rtc_base/logging.h",
154 ],
Niels Möllerd8b9ed72019-05-08 11:53:51155 "rtc_event_log_output_file.h": [
Niels Möllerd8b9ed72019-05-08 11:53:51156 # For private member and constructor.
157 "+rtc_base/system/file_wrapper.h",
158 ],
Steve Anton10542f22019-01-11 17:11:00159 "rtp_receiver_interface\.h": [
160 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25161 ],
162
Steve Anton10542f22019-01-11 17:11:00163 "rtp_sender_interface\.h": [
164 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25165 ],
166
Steve Anton10542f22019-01-11 17:11:00167 "rtp_transceiver_interface\.h": [
168 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25169 ],
170
Harald Alvestrandc85328f2019-02-28 06:51:00171 "sctp_transport_interface\.h": [
172 "+rtc_base/ref_count.h",
173 ],
174
Henrik Boström831ae4e2020-07-29 10:04:00175 "set_local_description_observer_interface\.h": [
176 "+rtc_base/ref_count.h",
177 ],
Steve Anton10542f22019-01-11 17:11:00178 "set_remote_description_observer_interface\.h": [
179 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25180 ],
181
Steve Anton10542f22019-01-11 17:11:00182 "stats_types\.h": [
183 "+rtc_base/constructor_magic.h",
184 "+rtc_base/ref_count.h",
Steve Anton10542f22019-01-11 17:11:00185 "+rtc_base/string_encode.h",
Mirko Bonadeia418e672018-10-24 11:57:25186 "+rtc_base/thread_checker.h",
187 ],
188
Steve Anton10542f22019-01-11 17:11:00189 "uma_metrics\.h": [
190 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25191 ],
192
193 "audio_frame\.h": [
Steve Anton10542f22019-01-11 17:11:00194 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25195 ],
196
197 "audio_mixer\.h": [
Steve Anton10542f22019-01-11 17:11:00198 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25199 ],
200
201 "audio_decoder\.h": [
202 "+rtc_base/buffer.h",
Steve Anton10542f22019-01-11 17:11:00203 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25204 ],
205
206 "audio_decoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00207 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25208 ],
209
210 "audio_decoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00211 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25212 ],
213
214 "audio_encoder\.h": [
215 "+rtc_base/buffer.h",
Mirko Bonadeia418e672018-10-24 11:57:25216 ],
217
218 "audio_encoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00219 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25220 ],
221
222 "audio_encoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00223 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25224 ],
225
Steve Anton10542f22019-01-11 17:11:00226 "frame_decryptor_interface\.h": [
227 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25228 ],
229
Steve Anton10542f22019-01-11 17:11:00230 "frame_encryptor_interface\.h": [
231 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25232 ],
233
Steve Anton10542f22019-01-11 17:11:00234 "rtc_stats_collector_callback\.h": [
235 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25236 ],
237
Steve Anton10542f22019-01-11 17:11:00238 "rtc_stats_report\.h": [
239 "+rtc_base/ref_count.h",
240 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25241 ],
242
243 "audioproc_float\.h": [
244 "+modules/audio_processing/include/audio_processing.h",
245 ],
246
Sam Zackrissonb0bd0702020-05-12 08:48:19247 "echo_detector_creator\.h": [
248 "+modules/audio_processing/include/audio_processing.h",
249 ],
250
Mirko Bonadeia418e672018-10-24 11:57:25251 "fake_frame_decryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00252 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25253 ],
254
255 "fake_frame_encryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00256 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25257 ],
258
Mirko Bonadeia418e672018-10-24 11:57:25259 "mock.*\.h": [
260 "+test/gmock.h",
261 ],
262
263 "simulated_network\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25264 "+rtc_base/random.h",
265 "+rtc_base/thread_annotations.h",
266 ],
267
268 "test_dependency_factory\.h": [
269 "+rtc_base/thread_checker.h",
270 ],
271
Sebastian Janssonfc8279d2020-01-16 10:45:59272 "time_controller\.h": [
273 "+rtc_base/thread.h",
274 ],
275
Mirko Bonadeia418e672018-10-24 11:57:25276 "videocodec_test_fixture\.h": [
277 "+modules/video_coding/include/video_codec_interface.h"
278 ],
279
Mirko Bonadeia418e672018-10-24 11:57:25280 "video_encoder_config\.h": [
Steve Anton10542f22019-01-11 17:11:00281 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25282 ],
283
Mirko Bonadei90490372018-10-26 11:17:47284 # .cc files in api/ should not be restricted in what they can #include,
285 # so we re-add all the top-level directories here. (That's because .h
286 # files leak their #includes to whoever's #including them, but .cc files
287 # do not since no one #includes them.)
kwiberg087bd342017-02-10 16:15:44288 ".*\.cc": [
Mirko Bonadeia418e672018-10-24 11:57:25289 "+audio",
290 "+call",
291 "+common_audio",
292 "+common_video",
293 "+examples",
294 "+logging",
295 "+media",
296 "+modules",
297 "+p2p",
298 "+pc",
299 "+rtc_base",
300 "+rtc_tools",
301 "+sdk",
302 "+stats",
303 "+system_wrappers",
304 "+test",
305 "+tools",
306 "+tools_webrtc",
307 "+video",
308 "+third_party",
kwiberg1e4e8cb2017-01-31 09:48:08309 ],
kjellander@webrtc.org94a23f02016-03-17 11:05:36310}