You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

301 lines
6.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # This is supposed to be a complete list of top-level directories,
  2. # excepting only api/ itself.
  3. include_rules = [
  4. "-audio",
  5. "-base",
  6. "-build",
  7. "-buildtools",
  8. "-build_overrides",
  9. "-call",
  10. "-common_audio",
  11. "-common_video",
  12. "-data",
  13. "-examples",
  14. "-ios",
  15. "-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",
  39. ]
  40. specific_include_rules = {
  41. # Some internal headers are allowed even in API headers:
  42. ".*\.h": [
  43. "+rtc_base/checks.h",
  44. "+rtc_base/system/rtc_export.h",
  45. "+rtc_base/units/unit_base.h",
  46. "+rtc_base/deprecation.h",
  47. ],
  48. "array_view\.h": [
  49. "+rtc_base/type_traits.h",
  50. ],
  51. # Needed because AudioEncoderOpus is in the wrong place for
  52. # backwards compatibilty reasons. See
  53. # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
  54. "audio_encoder_opus\.h": [
  55. "+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
  56. ],
  57. "async_resolver_factory\.h": [
  58. "+rtc_base/async_resolver_interface.h",
  59. ],
  60. "candidate\.h": [
  61. "+rtc_base/network_constants.h",
  62. "+rtc_base/socket_address.h",
  63. ],
  64. "data_channel_interface\.h": [
  65. "+rtc_base/copy_on_write_buffer.h",
  66. "+rtc_base/ref_count.h",
  67. ],
  68. "data_channel_transport_interface\.h": [
  69. "+rtc_base/copy_on_write_buffer.h",
  70. ],
  71. "dtls_transport_interface\.h": [
  72. "+rtc_base/ref_count.h",
  73. "+rtc_base/ssl_certificate.h",
  74. ],
  75. "dtmf_sender_interface\.h": [
  76. "+rtc_base/ref_count.h",
  77. ],
  78. "fec_controller\.h": [
  79. "+modules/include/module_fec_types.h",
  80. ],
  81. "ice_transport_interface\.h": [
  82. "+rtc_base/ref_count.h",
  83. ],
  84. "jsep\.h": [
  85. "+rtc_base/ref_count.h",
  86. ],
  87. "jsep_ice_candidate\.h": [
  88. "+rtc_base/constructor_magic.h",
  89. ],
  90. "jsep_session_description\.h": [
  91. "+rtc_base/constructor_magic.h",
  92. ],
  93. "media_stream_interface\.h": [
  94. "+modules/audio_processing/include/audio_processing_statistics.h",
  95. "+rtc_base/ref_count.h",
  96. ],
  97. "media_transport_interface\.h": [
  98. "+rtc_base/copy_on_write_buffer.h", # As used by datachannelinterface.h
  99. "+rtc_base/network_route.h",
  100. ],
  101. "packet_socket_factory\.h": [
  102. "+rtc_base/proxy_info.h",
  103. "+rtc_base/async_packet_socket.h",
  104. ],
  105. "peer_connection_factory_proxy\.h": [
  106. "+rtc_base/bind.h",
  107. ],
  108. "peer_connection_interface\.h": [
  109. "+media/base/media_config.h",
  110. "+media/base/media_engine.h",
  111. "+p2p/base/port_allocator.h",
  112. "+rtc_base/network.h",
  113. "+rtc_base/rtc_certificate.h",
  114. "+rtc_base/rtc_certificate_generator.h",
  115. "+rtc_base/socket_address.h",
  116. "+rtc_base/ssl_certificate.h",
  117. "+rtc_base/ssl_stream_adapter.h",
  118. ],
  119. "proxy\.h": [
  120. "+rtc_base/event.h",
  121. "+rtc_base/message_handler.h", # Inherits from it.
  122. "+rtc_base/message_queue.h", # Inherits from MessageData.
  123. "+rtc_base/ref_counted_object.h",
  124. "+rtc_base/thread.h",
  125. ],
  126. "ref_counted_base\.h": [
  127. "+rtc_base/constructor_magic.h",
  128. "+rtc_base/ref_count.h",
  129. "+rtc_base/ref_counter.h",
  130. ],
  131. "rtc_error\.h": [
  132. "+rtc_base/logging.h",
  133. ],
  134. "rtc_event_log_output_file.h": [
  135. # For private member and constructor.
  136. "+rtc_base/system/file_wrapper.h",
  137. ],
  138. "rtp_receiver_interface\.h": [
  139. "+rtc_base/ref_count.h",
  140. ],
  141. "rtp_sender_interface\.h": [
  142. "+rtc_base/ref_count.h",
  143. ],
  144. "rtp_transceiver_interface\.h": [
  145. "+rtc_base/ref_count.h",
  146. ],
  147. "sctp_transport_interface\.h": [
  148. "+rtc_base/ref_count.h",
  149. ],
  150. "set_remote_description_observer_interface\.h": [
  151. "+rtc_base/ref_count.h",
  152. ],
  153. "stats_types\.h": [
  154. "+rtc_base/constructor_magic.h",
  155. "+rtc_base/ref_count.h",
  156. "+rtc_base/string_encode.h",
  157. "+rtc_base/thread_checker.h",
  158. ],
  159. "uma_metrics\.h": [
  160. "+rtc_base/ref_count.h",
  161. ],
  162. "audio_frame\.h": [
  163. "+rtc_base/constructor_magic.h",
  164. ],
  165. "audio_mixer\.h": [
  166. "+rtc_base/ref_count.h",
  167. ],
  168. "audio_decoder\.h": [
  169. "+rtc_base/buffer.h",
  170. "+rtc_base/constructor_magic.h",
  171. ],
  172. "audio_decoder_factory\.h": [
  173. "+rtc_base/ref_count.h",
  174. ],
  175. "audio_decoder_factory_template\.h": [
  176. "+rtc_base/ref_counted_object.h",
  177. ],
  178. "audio_encoder\.h": [
  179. "+rtc_base/buffer.h",
  180. ],
  181. "audio_encoder_factory\.h": [
  182. "+rtc_base/ref_count.h",
  183. ],
  184. "audio_encoder_factory_template\.h": [
  185. "+rtc_base/ref_counted_object.h",
  186. ],
  187. "frame_decryptor_interface\.h": [
  188. "+rtc_base/ref_count.h",
  189. ],
  190. "frame_encryptor_interface\.h": [
  191. "+rtc_base/ref_count.h",
  192. ],
  193. "rtc_stats_collector_callback\.h": [
  194. "+rtc_base/ref_count.h",
  195. ],
  196. "rtc_stats_report\.h": [
  197. "+rtc_base/ref_count.h",
  198. "+rtc_base/ref_counted_object.h",
  199. ],
  200. "audioproc_float\.h": [
  201. "+modules/audio_processing/include/audio_processing.h",
  202. ],
  203. "fake_frame_decryptor\.h": [
  204. "+rtc_base/ref_counted_object.h",
  205. ],
  206. "fake_frame_encryptor\.h": [
  207. "+rtc_base/ref_counted_object.h",
  208. ],
  209. "mock.*\.h": [
  210. "+test/gmock.h",
  211. ],
  212. "simulated_network\.h": [
  213. "+rtc_base/critical_section.h",
  214. "+rtc_base/random.h",
  215. "+rtc_base/thread_annotations.h",
  216. ],
  217. "test_dependency_factory\.h": [
  218. "+rtc_base/thread_checker.h",
  219. ],
  220. "videocodec_test_fixture\.h": [
  221. "+modules/video_coding/include/video_codec_interface.h"
  222. ],
  223. "video_encoder_config\.h": [
  224. "+rtc_base/ref_count.h",
  225. ],
  226. # .cc files in api/ should not be restricted in what they can #include,
  227. # so we re-add all the top-level directories here. (That's because .h
  228. # files leak their #includes to whoever's #including them, but .cc files
  229. # do not since no one #includes them.)
  230. ".*\.cc": [
  231. "+audio",
  232. "+call",
  233. "+common_audio",
  234. "+common_video",
  235. "+examples",
  236. "+logging",
  237. "+media",
  238. "+modules",
  239. "+p2p",
  240. "+pc",
  241. "+rtc_base",
  242. "+rtc_tools",
  243. "+sdk",
  244. "+stats",
  245. "+system_wrappers",
  246. "+test",
  247. "+tools",
  248. "+tools_webrtc",
  249. "+video",
  250. "+third_party",
  251. ],
  252. }