blob: d201a4413a598a011def1ba8826c844ef5247c5c [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",
Artem Titov6512af02021-03-01 16:30:2914 "-g3doc",
Mirko Bonadei583d6d92018-10-24 13:53:3315 "-ios",
Mirko Bonadeia418e672018-10-24 11:57:2516 "-infra",
17 "-logging",
18 "-media",
Victor Boivie7d3c49a2021-03-25 12:11:0319 "-net",
Mirko Bonadeia418e672018-10-24 11:57:2520 "-modules",
21 "-out",
22 "-p2p",
23 "-pc",
24 "-resources",
25 "-rtc_base",
26 "-rtc_tools",
27 "-sdk",
28 "-stats",
29 "-style-guide",
30 "-system_wrappers",
31 "-test",
32 "-testing",
33 "-third_party",
34 "-tools",
35 "-tools_webrtc",
36 "-video",
37 "-external/webrtc/webrtc", # Android platform build.
38 "-libyuv",
39 "-common_types.h",
40 "-WebRTC",
kjellander@webrtc.org94a23f02016-03-17 11:05:3641]
42
43specific_include_rules = {
Mirko Bonadeia418e672018-10-24 11:57:2544 # Some internal headers are allowed even in API headers:
Vojin Ilic504fc192021-05-31 12:02:2845
46 "call_factory_interface\.h": [
47 "+call/rtp_transport_controller_send_factory_interface.h",
48 ],
49
Mirko Bonadeia418e672018-10-24 11:57:2550 ".*\.h": [
51 "+rtc_base/checks.h",
52 "+rtc_base/system/rtc_export.h",
Mirko Bonadei054f1852019-11-04 15:31:0853 "+rtc_base/system/rtc_export_template.h",
Sebastian Jansson72bba622018-11-19 10:17:1254 "+rtc_base/units/unit_base.h",
Mirko Bonadeia418e672018-10-24 11:57:2555 ],
56
57 "array_view\.h": [
58 "+rtc_base/type_traits.h",
59 ],
60
kwiberg96da0112017-06-30 11:23:2261 # Needed because AudioEncoderOpus is in the wrong place for
62 # backwards compatibilty reasons. See
63 # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
64 "audio_encoder_opus\.h": [
Mirko Bonadei92ea95e2017-09-15 04:47:3165 "+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
kwiberg96da0112017-06-30 11:23:2266 ],
67
Steve Anton10542f22019-01-11 17:11:0068 "async_resolver_factory\.h": [
69 "+rtc_base/async_resolver_interface.h",
Mirko Bonadeia418e672018-10-24 11:57:2570 ],
71
Harald Alvestrande6e2f282021-03-24 12:13:2872 "async_dns_resolver\.h": [
73 "+rtc_base/socket_address.h",
74 ],
75
Mirko Bonadeia418e672018-10-24 11:57:2576 "candidate\.h": [
77 "+rtc_base/network_constants.h",
Steve Anton10542f22019-01-11 17:11:0078 "+rtc_base/socket_address.h",
Mirko Bonadeia418e672018-10-24 11:57:2579 ],
80
Steve Anton10542f22019-01-11 17:11:0081 "data_channel_interface\.h": [
82 "+rtc_base/copy_on_write_buffer.h",
83 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2584 ],
85
Bjorn A Mellem05497f22019-08-01 17:48:2086 "data_channel_transport_interface\.h": [
87 "+rtc_base/copy_on_write_buffer.h",
88 ],
89
Steve Anton10542f22019-01-11 17:11:0090 "dtls_transport_interface\.h": [
91 "+rtc_base/ref_count.h",
Harald Alvestrand7061e512019-04-10 15:20:4292 "+rtc_base/ssl_certificate.h",
Harald Alvestrandad88c882018-11-28 15:47:4693 ],
94
Steve Anton10542f22019-01-11 17:11:0095 "dtmf_sender_interface\.h": [
96 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2597 ],
98
99 "fec_controller\.h": [
100 "+modules/include/module_fec_types.h",
101 ],
102
Marina Cioceae3e07bf2020-02-27 15:28:51103 "frame_transformer_interface\.h": [
104 "+rtc_base/ref_count.h",
105 ],
106
Harald Alvestrand98462622019-01-30 13:57:03107 "ice_transport_interface\.h": [
108 "+rtc_base/ref_count.h",
109 ],
110
Mirko Bonadeia418e672018-10-24 11:57:25111 "jsep\.h": [
Steve Anton10542f22019-01-11 17:11:00112 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25113 ],
114
Steve Anton10542f22019-01-11 17:11:00115 "jsep_ice_candidate\.h": [
116 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25117 ],
118
Steve Anton10542f22019-01-11 17:11:00119 "jsep_session_description\.h": [
120 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25121 ],
122
Steve Anton10542f22019-01-11 17:11:00123 "media_stream_interface\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25124 "+modules/audio_processing/include/audio_processing_statistics.h",
Steve Anton10542f22019-01-11 17:11:00125 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25126 ],
127
Patrik Höglund662e31f2019-09-05 12:35:04128 "packet_socket_factory\.h": [
129 "+rtc_base/proxy_info.h",
130 "+rtc_base/async_packet_socket.h",
131 ],
132
Steve Anton10542f22019-01-11 17:11:00133 "peer_connection_interface\.h": [
Vojin Ilic504fc192021-05-31 12:02:28134 "+call/rtp_transport_controller_send_factory_interface.h",
Steve Anton10542f22019-01-11 17:11:00135 "+media/base/media_config.h",
Steve Anton10542f22019-01-11 17:11:00136 "+media/base/media_engine.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57137 "+p2p/base/port.h",
Steve Anton10542f22019-01-11 17:11:00138 "+p2p/base/port_allocator.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57139 "+rtc_base/network.h",
140 "+rtc_base/network_constants.h",
Taylor Brandstetter239ac8a2020-07-31 23:07:52141 "+rtc_base/network_monitor_factory.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57142 "+rtc_base/ref_count.h",
Steve Anton10542f22019-01-11 17:11:00143 "+rtc_base/rtc_certificate.h",
144 "+rtc_base/rtc_certificate_generator.h",
145 "+rtc_base/socket_address.h",
146 "+rtc_base/ssl_certificate.h",
147 "+rtc_base/ssl_stream_adapter.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57148 "+rtc_base/thread.h",
Steve Antonbba675d2018-12-27 19:15:19149 ],
150
Yves Gerey3e707812018-11-28 15:47:49151 "proxy\.h": [
Steve Antonbba675d2018-12-27 19:15:19152 "+rtc_base/event.h",
Steve Anton10542f22019-01-11 17:11:00153 "+rtc_base/message_handler.h", # Inherits from it.
Steve Anton10542f22019-01-11 17:11:00154 "+rtc_base/ref_counted_object.h",
Steve Antonbba675d2018-12-27 19:15:19155 "+rtc_base/thread.h",
Yves Gerey3e707812018-11-28 15:47:49156 ],
157
Steve Anton10542f22019-01-11 17:11:00158 "ref_counted_base\.h": [
159 "+rtc_base/constructor_magic.h",
160 "+rtc_base/ref_count.h",
161 "+rtc_base/ref_counter.h",
Mirko Bonadeia418e672018-10-24 11:57:25162 ],
163
Steve Anton10542f22019-01-11 17:11:00164 "rtc_error\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25165 "+rtc_base/logging.h",
166 ],
Niels Möllerd8b9ed72019-05-08 11:53:51167 "rtc_event_log_output_file.h": [
Niels Möllerd8b9ed72019-05-08 11:53:51168 # For private member and constructor.
169 "+rtc_base/system/file_wrapper.h",
170 ],
Steve Anton10542f22019-01-11 17:11:00171 "rtp_receiver_interface\.h": [
172 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25173 ],
174
Steve Anton10542f22019-01-11 17:11:00175 "rtp_sender_interface\.h": [
176 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25177 ],
178
Steve Anton10542f22019-01-11 17:11:00179 "rtp_transceiver_interface\.h": [
180 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25181 ],
182
Harald Alvestrandc85328f2019-02-28 06:51:00183 "sctp_transport_interface\.h": [
184 "+rtc_base/ref_count.h",
185 ],
186
Henrik Boström831ae4e2020-07-29 10:04:00187 "set_local_description_observer_interface\.h": [
188 "+rtc_base/ref_count.h",
189 ],
Steve Anton10542f22019-01-11 17:11:00190 "set_remote_description_observer_interface\.h": [
191 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25192 ],
193
Steve Anton10542f22019-01-11 17:11:00194 "stats_types\.h": [
195 "+rtc_base/constructor_magic.h",
196 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25197 "+rtc_base/thread_checker.h",
198 ],
199
Steve Anton10542f22019-01-11 17:11:00200 "uma_metrics\.h": [
201 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25202 ],
203
204 "audio_frame\.h": [
Steve Anton10542f22019-01-11 17:11:00205 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25206 ],
207
208 "audio_mixer\.h": [
Steve Anton10542f22019-01-11 17:11:00209 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25210 ],
211
212 "audio_decoder\.h": [
213 "+rtc_base/buffer.h",
Steve Anton10542f22019-01-11 17:11:00214 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25215 ],
216
217 "audio_decoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00218 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25219 ],
220
221 "audio_decoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00222 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25223 ],
224
225 "audio_encoder\.h": [
226 "+rtc_base/buffer.h",
Mirko Bonadeia418e672018-10-24 11:57:25227 ],
228
229 "audio_encoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00230 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25231 ],
232
233 "audio_encoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00234 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25235 ],
236
Steve Anton10542f22019-01-11 17:11:00237 "frame_decryptor_interface\.h": [
238 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25239 ],
240
Steve Anton10542f22019-01-11 17:11:00241 "frame_encryptor_interface\.h": [
242 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25243 ],
244
Steve Anton10542f22019-01-11 17:11:00245 "rtc_stats_collector_callback\.h": [
246 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25247 ],
248
Steve Anton10542f22019-01-11 17:11:00249 "rtc_stats_report\.h": [
250 "+rtc_base/ref_count.h",
251 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25252 ],
253
254 "audioproc_float\.h": [
255 "+modules/audio_processing/include/audio_processing.h",
256 ],
257
Sam Zackrissonb0bd0702020-05-12 08:48:19258 "echo_detector_creator\.h": [
259 "+modules/audio_processing/include/audio_processing.h",
260 ],
261
Mirko Bonadeia418e672018-10-24 11:57:25262 "fake_frame_decryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00263 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25264 ],
265
266 "fake_frame_encryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00267 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25268 ],
269
Mirko Bonadeia418e672018-10-24 11:57:25270 "mock.*\.h": [
271 "+test/gmock.h",
272 ],
273
Florent Castelli0fc787b2021-07-16 15:36:52274 "mock_peerconnectioninterface\.h": [
275 "+rtc_base/ref_counted_object.h",
276 ],
277
Florent Castelli63cc46c2021-07-16 23:32:40278 "mock_video_track\.h": [
279 "+rtc_base/ref_counted_object.h",
280 ],
281
Mirko Bonadeia418e672018-10-24 11:57:25282 "simulated_network\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25283 "+rtc_base/random.h",
284 "+rtc_base/thread_annotations.h",
285 ],
286
287 "test_dependency_factory\.h": [
288 "+rtc_base/thread_checker.h",
289 ],
290
Sebastian Janssonfc8279d2020-01-16 10:45:59291 "time_controller\.h": [
292 "+rtc_base/thread.h",
293 ],
294
Mirko Bonadeia418e672018-10-24 11:57:25295 "videocodec_test_fixture\.h": [
296 "+modules/video_coding/include/video_codec_interface.h"
297 ],
298
Mirko Bonadeia418e672018-10-24 11:57:25299 "video_encoder_config\.h": [
Steve Anton10542f22019-01-11 17:11:00300 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25301 ],
302
Artem Titovb586d822021-02-04 14:06:50303 "sequence_checker\.h": [
304 "+rtc_base/synchronization/sequence_checker_internal.h",
305 "+rtc_base/thread_annotations.h",
306 ],
307
Mirko Bonadei90490372018-10-26 11:17:47308 # .cc files in api/ should not be restricted in what they can #include,
309 # so we re-add all the top-level directories here. (That's because .h
310 # files leak their #includes to whoever's #including them, but .cc files
311 # do not since no one #includes them.)
kwiberg087bd342017-02-10 16:15:44312 ".*\.cc": [
Mirko Bonadeia418e672018-10-24 11:57:25313 "+audio",
314 "+call",
315 "+common_audio",
316 "+common_video",
317 "+examples",
318 "+logging",
319 "+media",
320 "+modules",
321 "+p2p",
322 "+pc",
323 "+rtc_base",
324 "+rtc_tools",
325 "+sdk",
326 "+stats",
327 "+system_wrappers",
328 "+test",
329 "+tools",
330 "+tools_webrtc",
331 "+video",
332 "+third_party",
kwiberg1e4e8cb2017-01-31 09:48:08333 ],
kjellander@webrtc.org94a23f02016-03-17 11:05:36334}