blob: afec84d8ecdaee768ec045e758fcaca4c94af452 [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:
45 ".*\.h": [
46 "+rtc_base/checks.h",
47 "+rtc_base/system/rtc_export.h",
Mirko Bonadei054f1852019-11-04 15:31:0848 "+rtc_base/system/rtc_export_template.h",
Sebastian Jansson72bba622018-11-19 10:17:1249 "+rtc_base/units/unit_base.h",
Mirko Bonadeia418e672018-10-24 11:57:2550 ],
51
52 "array_view\.h": [
53 "+rtc_base/type_traits.h",
54 ],
55
kwiberg96da0112017-06-30 11:23:2256 # Needed because AudioEncoderOpus is in the wrong place for
57 # backwards compatibilty reasons. See
58 # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
59 "audio_encoder_opus\.h": [
Mirko Bonadei92ea95e2017-09-15 04:47:3160 "+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
kwiberg96da0112017-06-30 11:23:2261 ],
62
Steve Anton10542f22019-01-11 17:11:0063 "async_resolver_factory\.h": [
64 "+rtc_base/async_resolver_interface.h",
Mirko Bonadeia418e672018-10-24 11:57:2565 ],
66
Harald Alvestrande6e2f282021-03-24 12:13:2867 "async_dns_resolver\.h": [
68 "+rtc_base/socket_address.h",
69 ],
70
Mirko Bonadeia418e672018-10-24 11:57:2571 "candidate\.h": [
72 "+rtc_base/network_constants.h",
Steve Anton10542f22019-01-11 17:11:0073 "+rtc_base/socket_address.h",
Mirko Bonadeia418e672018-10-24 11:57:2574 ],
75
Steve Anton10542f22019-01-11 17:11:0076 "data_channel_interface\.h": [
77 "+rtc_base/copy_on_write_buffer.h",
78 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2579 ],
80
Bjorn A Mellem05497f22019-08-01 17:48:2081 "data_channel_transport_interface\.h": [
82 "+rtc_base/copy_on_write_buffer.h",
83 ],
84
Steve Anton10542f22019-01-11 17:11:0085 "dtls_transport_interface\.h": [
86 "+rtc_base/ref_count.h",
Harald Alvestrand7061e512019-04-10 15:20:4287 "+rtc_base/ssl_certificate.h",
Harald Alvestrandad88c882018-11-28 15:47:4688 ],
89
Steve Anton10542f22019-01-11 17:11:0090 "dtmf_sender_interface\.h": [
91 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:2592 ],
93
94 "fec_controller\.h": [
95 "+modules/include/module_fec_types.h",
96 ],
97
Marina Cioceae3e07bf2020-02-27 15:28:5198 "frame_transformer_interface\.h": [
99 "+rtc_base/ref_count.h",
100 ],
101
Harald Alvestrand98462622019-01-30 13:57:03102 "ice_transport_interface\.h": [
103 "+rtc_base/ref_count.h",
104 ],
105
Mirko Bonadeia418e672018-10-24 11:57:25106 "jsep\.h": [
Steve Anton10542f22019-01-11 17:11:00107 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25108 ],
109
Steve Anton10542f22019-01-11 17:11:00110 "jsep_ice_candidate\.h": [
111 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25112 ],
113
Steve Anton10542f22019-01-11 17:11:00114 "jsep_session_description\.h": [
115 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25116 ],
117
Steve Anton10542f22019-01-11 17:11:00118 "media_stream_interface\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25119 "+modules/audio_processing/include/audio_processing_statistics.h",
Steve Anton10542f22019-01-11 17:11:00120 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25121 ],
122
Patrik Höglund662e31f2019-09-05 12:35:04123 "packet_socket_factory\.h": [
124 "+rtc_base/proxy_info.h",
125 "+rtc_base/async_packet_socket.h",
126 ],
127
Steve Anton10542f22019-01-11 17:11:00128 "peer_connection_interface\.h": [
Steve Anton10542f22019-01-11 17:11:00129 "+media/base/media_config.h",
Steve Anton10542f22019-01-11 17:11:00130 "+media/base/media_engine.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57131 "+p2p/base/port.h",
Steve Anton10542f22019-01-11 17:11:00132 "+p2p/base/port_allocator.h",
Evan Shrubsole006815e2021-05-24 10:59:56133 # TODO(https://crbug.com/1212611) Remove once includes fixed in nearby.
134 "+rtc_base/event.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57135 "+rtc_base/network.h",
136 "+rtc_base/network_constants.h",
Taylor Brandstetter239ac8a2020-07-31 23:07:52137 "+rtc_base/network_monitor_factory.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57138 "+rtc_base/ref_count.h",
Steve Anton10542f22019-01-11 17:11:00139 "+rtc_base/rtc_certificate.h",
140 "+rtc_base/rtc_certificate_generator.h",
141 "+rtc_base/socket_address.h",
142 "+rtc_base/ssl_certificate.h",
143 "+rtc_base/ssl_stream_adapter.h",
Harald Alvestrandf33f7a22021-05-09 14:58:57144 "+rtc_base/thread.h",
Steve Antonbba675d2018-12-27 19:15:19145 ],
146
Yves Gerey3e707812018-11-28 15:47:49147 "proxy\.h": [
Steve Antonbba675d2018-12-27 19:15:19148 "+rtc_base/event.h",
Steve Anton10542f22019-01-11 17:11:00149 "+rtc_base/message_handler.h", # Inherits from it.
Steve Anton10542f22019-01-11 17:11:00150 "+rtc_base/ref_counted_object.h",
Steve Antonbba675d2018-12-27 19:15:19151 "+rtc_base/thread.h",
Yves Gerey3e707812018-11-28 15:47:49152 ],
153
Steve Anton10542f22019-01-11 17:11:00154 "ref_counted_base\.h": [
155 "+rtc_base/constructor_magic.h",
156 "+rtc_base/ref_count.h",
157 "+rtc_base/ref_counter.h",
Mirko Bonadeia418e672018-10-24 11:57:25158 ],
159
Steve Anton10542f22019-01-11 17:11:00160 "rtc_error\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25161 "+rtc_base/logging.h",
162 ],
Niels Möllerd8b9ed72019-05-08 11:53:51163 "rtc_event_log_output_file.h": [
Niels Möllerd8b9ed72019-05-08 11:53:51164 # For private member and constructor.
165 "+rtc_base/system/file_wrapper.h",
166 ],
Steve Anton10542f22019-01-11 17:11:00167 "rtp_receiver_interface\.h": [
168 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25169 ],
170
Steve Anton10542f22019-01-11 17:11:00171 "rtp_sender_interface\.h": [
172 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25173 ],
174
Steve Anton10542f22019-01-11 17:11:00175 "rtp_transceiver_interface\.h": [
176 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25177 ],
178
Harald Alvestrandc85328f2019-02-28 06:51:00179 "sctp_transport_interface\.h": [
180 "+rtc_base/ref_count.h",
181 ],
182
Henrik Boström831ae4e2020-07-29 10:04:00183 "set_local_description_observer_interface\.h": [
184 "+rtc_base/ref_count.h",
185 ],
Steve Anton10542f22019-01-11 17:11:00186 "set_remote_description_observer_interface\.h": [
187 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25188 ],
189
Steve Anton10542f22019-01-11 17:11:00190 "stats_types\.h": [
191 "+rtc_base/constructor_magic.h",
192 "+rtc_base/ref_count.h",
Steve Anton10542f22019-01-11 17:11:00193 "+rtc_base/string_encode.h",
Mirko Bonadeia418e672018-10-24 11:57:25194 "+rtc_base/thread_checker.h",
195 ],
196
Steve Anton10542f22019-01-11 17:11:00197 "uma_metrics\.h": [
198 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25199 ],
200
201 "audio_frame\.h": [
Steve Anton10542f22019-01-11 17:11:00202 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25203 ],
204
205 "audio_mixer\.h": [
Steve Anton10542f22019-01-11 17:11:00206 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25207 ],
208
209 "audio_decoder\.h": [
210 "+rtc_base/buffer.h",
Steve Anton10542f22019-01-11 17:11:00211 "+rtc_base/constructor_magic.h",
Mirko Bonadeia418e672018-10-24 11:57:25212 ],
213
214 "audio_decoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00215 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25216 ],
217
218 "audio_decoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00219 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25220 ],
221
222 "audio_encoder\.h": [
223 "+rtc_base/buffer.h",
Mirko Bonadeia418e672018-10-24 11:57:25224 ],
225
226 "audio_encoder_factory\.h": [
Steve Anton10542f22019-01-11 17:11:00227 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25228 ],
229
230 "audio_encoder_factory_template\.h": [
Steve Anton10542f22019-01-11 17:11:00231 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25232 ],
233
Steve Anton10542f22019-01-11 17:11:00234 "frame_decryptor_interface\.h": [
235 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25236 ],
237
Steve Anton10542f22019-01-11 17:11:00238 "frame_encryptor_interface\.h": [
239 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25240 ],
241
Steve Anton10542f22019-01-11 17:11:00242 "rtc_stats_collector_callback\.h": [
243 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25244 ],
245
Steve Anton10542f22019-01-11 17:11:00246 "rtc_stats_report\.h": [
247 "+rtc_base/ref_count.h",
248 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25249 ],
250
251 "audioproc_float\.h": [
252 "+modules/audio_processing/include/audio_processing.h",
253 ],
254
Sam Zackrissonb0bd0702020-05-12 08:48:19255 "echo_detector_creator\.h": [
256 "+modules/audio_processing/include/audio_processing.h",
257 ],
258
Mirko Bonadeia418e672018-10-24 11:57:25259 "fake_frame_decryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00260 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25261 ],
262
263 "fake_frame_encryptor\.h": [
Steve Anton10542f22019-01-11 17:11:00264 "+rtc_base/ref_counted_object.h",
Mirko Bonadeia418e672018-10-24 11:57:25265 ],
266
Mirko Bonadeia418e672018-10-24 11:57:25267 "mock.*\.h": [
268 "+test/gmock.h",
269 ],
270
271 "simulated_network\.h": [
Mirko Bonadeia418e672018-10-24 11:57:25272 "+rtc_base/random.h",
273 "+rtc_base/thread_annotations.h",
274 ],
275
276 "test_dependency_factory\.h": [
277 "+rtc_base/thread_checker.h",
278 ],
279
Sebastian Janssonfc8279d2020-01-16 10:45:59280 "time_controller\.h": [
281 "+rtc_base/thread.h",
282 ],
283
Mirko Bonadeia418e672018-10-24 11:57:25284 "videocodec_test_fixture\.h": [
285 "+modules/video_coding/include/video_codec_interface.h"
286 ],
287
Mirko Bonadeia418e672018-10-24 11:57:25288 "video_encoder_config\.h": [
Steve Anton10542f22019-01-11 17:11:00289 "+rtc_base/ref_count.h",
Mirko Bonadeia418e672018-10-24 11:57:25290 ],
291
Artem Titovb586d822021-02-04 14:06:50292 "sequence_checker\.h": [
293 "+rtc_base/synchronization/sequence_checker_internal.h",
294 "+rtc_base/thread_annotations.h",
295 ],
296
Mirko Bonadei90490372018-10-26 11:17:47297 # .cc files in api/ should not be restricted in what they can #include,
298 # so we re-add all the top-level directories here. (That's because .h
299 # files leak their #includes to whoever's #including them, but .cc files
300 # do not since no one #includes them.)
kwiberg087bd342017-02-10 16:15:44301 ".*\.cc": [
Mirko Bonadeia418e672018-10-24 11:57:25302 "+audio",
303 "+call",
304 "+common_audio",
305 "+common_video",
306 "+examples",
307 "+logging",
308 "+media",
309 "+modules",
310 "+p2p",
311 "+pc",
312 "+rtc_base",
313 "+rtc_tools",
314 "+sdk",
315 "+stats",
316 "+system_wrappers",
317 "+test",
318 "+tools",
319 "+tools_webrtc",
320 "+video",
321 "+third_party",
kwiberg1e4e8cb2017-01-31 09:48:08322 ],
kjellander@webrtc.org94a23f02016-03-17 11:05:36323}