Remove //rtc_base:refcount from public deps

Bug: webrtc:8603
Change-Id: Ib27a107ae809df739492846175f0e9c4af40d21a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257910
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Auto-Submit: Florent Castelli <orphis@webrtc.org>
Reviewed-by: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36447}
This commit is contained in:
Florent Castelli
2022-04-05 02:54:12 +02:00
committed by WebRTC LUCI CQ
parent 09bdd95b3e
commit f86f6f9afd
29 changed files with 76 additions and 1 deletions

View File

@ -93,6 +93,7 @@ rtc_library("rtp_packet_info") {
":refcountedbase",
":rtp_headers",
":scoped_refptr",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base/system:rtc_export",
"units:timestamp",
@ -191,6 +192,7 @@ rtc_library("libjingle_peerconnection_api") {
"../call:rtp_interfaces",
"../rtc_base:logging",
"../rtc_base:network_constants",
"../rtc_base:refcount",
"adaptation:resource_adaptation_api",
"audio:audio_mixer_api",
"audio_codecs:audio_codecs_api",
@ -616,6 +618,7 @@ rtc_source_set("rtc_stats_api") {
":scoped_refptr",
"../api:refcountedbase",
"../rtc_base:checks",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base/system:rtc_export",
]
@ -960,6 +963,7 @@ if (rtc_include_tests) {
":libjingle_peerconnection_api",
":rtp_parameters",
"../rtc_base:checks",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"crypto:frame_encryptor_interface",
]
@ -977,6 +981,7 @@ if (rtc_include_tests) {
":libjingle_peerconnection_api",
":rtp_parameters",
"../rtc_base:checks",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"crypto:frame_decryptor_interface",
]

View File

@ -37,6 +37,7 @@ rtc_source_set("audio_mixer_api") {
deps = [
":audio_frame_api",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
]
}

View File

@ -34,6 +34,7 @@ rtc_library("audio_codecs_api") {
"..:scoped_refptr",
"../../api:field_trials_view",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:sanitizer",
"../../rtc_base/system:rtc_export",

View File

@ -68,6 +68,7 @@ rtc_library("video_frame") {
"..:scoped_refptr",
"..:video_track_source_constraints",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/memory:aligned_malloc",
"../../rtc_base/system:rtc_export",
@ -94,6 +95,7 @@ rtc_library("video_frame_i010") {
"..:scoped_refptr",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base/memory:aligned_malloc",
"//third_party/libyuv",
]
@ -139,6 +141,7 @@ rtc_library("encoded_image") {
"..:rtp_packet_info",
"..:scoped_refptr",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/system:rtc_export",
]

View File

@ -47,6 +47,7 @@ rtc_library("video_codecs_api") {
"../../modules/video_coding:codec_globals_headers",
"../../rtc_base:checks",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/system:rtc_export",
"../units:data_rate",

View File

@ -90,6 +90,7 @@ rtc_library("audio") {
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:rate_limiter",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_task_queue",
"../rtc_base:safe_minmax",
@ -182,6 +183,7 @@ if (rtc_include_tests) {
"../modules/utility",
"../rtc_base:checks",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:safe_compare",

View File

@ -71,6 +71,7 @@ rtc_library("call_interfaces") {
"../rtc_base",
"../rtc_base:audio_format_to_string",
"../rtc_base:checks",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base/network:sent_packet",
]

View File

@ -46,6 +46,7 @@ rtc_library("resource_adaptation") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_task_queue",
"../../rtc_base/experiments:balanced_degradation_settings",
@ -116,6 +117,7 @@ if (rtc_include_tests) {
"../../api/adaptation:resource_adaptation_api",
"../../api/task_queue:task_queue",
"../../api/video:video_stream_encoder",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/task_utils:to_queued_task",
"../../test:test_support",

View File

@ -60,6 +60,7 @@ rtc_library("common_video") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_task_queue",
"../rtc_base:safe_minmax",
"../rtc_base/synchronization:mutex",

View File

@ -687,6 +687,7 @@ if (is_linux || is_chromeos || is_win) {
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:net_helpers",
"../rtc_base:refcount",
"../rtc_base:threading",
"../rtc_base/third_party/sigslot",
"../system_wrappers:field_trial",

View File

@ -23,6 +23,7 @@ rtc_library("async_audio_processing") {
"../../api/audio:audio_frame_processor",
"../../api/task_queue:task_queue",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_task_queue",
]

View File

@ -1540,6 +1540,7 @@ if (rtc_include_tests) {
defines = audio_codec_defines
deps = [
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../test:fileutils",
]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
@ -2087,6 +2088,7 @@ if (rtc_include_tests) {
"../../rtc_base:checks",
"../../rtc_base:ignore_wundef",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:sanitizer",

View File

@ -51,6 +51,7 @@ rtc_source_set("audio_device_api") {
"../../api:scoped_refptr",
"../../api/task_queue",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:stringutils",
]
@ -153,6 +154,7 @@ rtc_source_set("audio_device_module_from_input_and_output") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
@ -179,6 +181,7 @@ rtc_library("audio_device_impl") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_task_queue",
"../../rtc_base/synchronization:mutex",

View File

@ -48,6 +48,7 @@ rtc_library("audio_mixer_impl") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:safe_conversions",
"../../rtc_base/synchronization:mutex",

View File

@ -34,6 +34,7 @@ rtc_library("api") {
"../../api/audio:audio_frame_api",
"../../api/audio:echo_control",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/system:arch",
"../../rtc_base/system:file_wrapper",
@ -380,6 +381,7 @@ if (rtc_include_tests) {
"../../rtc_base:ignore_wundef",
"../../rtc_base:macromagic",
"../../rtc_base:protobuf_utils",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:safe_minmax",
@ -624,6 +626,7 @@ rtc_library("audioproc_test_utils") {
"../../api/audio:audio_frame_api",
"../../common_audio",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/system:arch",
"../../system_wrappers",

View File

@ -39,6 +39,7 @@ rtc_library("primitives") {
deps = [
"../../api:scoped_refptr",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base/system:rtc_export",
"//third_party/libyuv",
]
@ -482,6 +483,7 @@ rtc_library("desktop_capture_generic") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:arch",
"../../rtc_base/system:no_unique_address",

View File

@ -34,6 +34,7 @@ rtc_library("video_capture_module") {
"../../media:rtc_media_base",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:stringutils",
"../../rtc_base/synchronization:mutex",
@ -52,6 +53,7 @@ if (!build_with_chromium) {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/synchronization:mutex",
"../../system_wrappers",

View File

@ -521,6 +521,7 @@ rtc_library("video_coding_utility") {
"../../rtc_base:bitstream_reader",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_numerics",
"../../rtc_base:rtc_task_queue",
@ -1083,6 +1084,7 @@ if (rtc_include_tests) {
"../../media:rtc_media_base",
"../../media:rtc_simulcast_encoder_adapter",
"../../rtc_base",
"../../rtc_base:refcount",
"../../test:explicit_key_value_config",
"../../test:field_trial",
"../../test:fileutils",
@ -1238,6 +1240,7 @@ if (rtc_include_tests) {
"../../media:rtc_media_base",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:rtc_numerics",

View File

@ -140,6 +140,7 @@ rtc_library("dcsctp_socket") {
"../../../api/task_queue:task_queue",
"../../../rtc_base:checks",
"../../../rtc_base:logging",
"../../../rtc_base:refcount",
"../../../rtc_base:rtc_base_approved",
"../common:internal_types",
"../packet:bounded_io",

View File

@ -109,6 +109,7 @@ rtc_library("rtc_p2p") {
"../rtc_base:macromagic",
"../rtc_base:net_helpers",
"../rtc_base:network_constants",
"../rtc_base:refcount",
"../rtc_base:rtc_numerics",
"../rtc_base:socket",
"../rtc_base:socket_address",
@ -256,6 +257,7 @@ if (rtc_include_tests) {
"../rtc_base:macromagic",
"../rtc_base:net_helpers",
"../rtc_base:network_constants",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:socket",

View File

@ -48,6 +48,7 @@ rtc_library("proxy") {
deps = [
"../api:scoped_refptr",
"../api/task_queue",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:threading",
"../rtc_base/system:rtc_export",
@ -308,6 +309,7 @@ rtc_source_set("jsep_transport_controller") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:threading",
"../rtc_base/third_party/sigslot",
@ -1596,6 +1598,7 @@ rtc_library("rtp_transmission_manager") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:threading",
"../rtc_base:weak_ptr",
"../rtc_base/third_party/sigslot",
@ -1646,6 +1649,7 @@ rtc_library("rtp_receiver") {
"../media:rtc_media_base",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:rtc_base",
"../rtc_base:rtc_base_approved",
"../rtc_base:threading",
@ -1723,6 +1727,7 @@ rtc_library("video_rtp_receiver") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:threading",
"../rtc_base/system:no_unique_address",
@ -1868,6 +1873,7 @@ rtc_library("rtp_sender") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base",
"../rtc_base:threading",
"../rtc_base/synchronization:mutex",
@ -1917,6 +1923,7 @@ rtc_library("dtmf_sender") {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base",
"../rtc_base:threading",
"../rtc_base/task_utils:pending_task_safety_flag",
@ -2078,6 +2085,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:gunit_helpers",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:socket_address",
@ -2137,6 +2145,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base",
"../rtc_base:checks",
"../rtc_base:gunit_helpers",
"../rtc_base:refcount",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:socket_address",
"../rtc_base:socket_factory",
@ -2168,6 +2177,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:checks",
"../rtc_base:gunit_helpers",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../test:test_support",
]
@ -2323,6 +2333,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:network_constants",
"../rtc_base:refcount",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_json",
"../rtc_base:socket_address",
@ -2497,6 +2508,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:ip_address",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_json",
"../rtc_base:socket_address",
@ -2597,6 +2609,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../rtc_base:gunit_helpers",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_task_queue",
"../rtc_base:task_queue_for_test",

View File

@ -84,6 +84,7 @@ rtc_library("rtc_base_approved") {
":checks",
":logging",
":macromagic",
":refcount",
":rtc_task_queue",
":safe_compare",
":type_traits",
@ -177,7 +178,6 @@ rtc_library("rtc_base_approved") {
public_deps += [ # no-presubmit-check TODO(webrtc:8603)
":platform_thread",
":platform_thread_types",
":refcount",
":rtc_event",
":safe_conversions",
":stringutils",
@ -813,6 +813,7 @@ rtc_library("threading") {
":network_constants",
":null_socket_server",
":platform_thread_types",
":refcount",
":rtc_base_approved",
":rtc_event",
":rtc_task_queue",
@ -939,6 +940,7 @@ rtc_library("rtc_base") {
":macromagic",
":network_constants",
":null_socket_server",
":refcount",
":rtc_task_queue",
":socket",
":socket_address",
@ -1414,6 +1416,7 @@ if (rtc_include_tests) {
":macromagic",
":null_socket_server",
":rate_limiter",
":refcount",
":rtc_base",
":rtc_base_approved",
":rtc_base_tests_utils",
@ -1552,6 +1555,7 @@ if (rtc_include_tests) {
":macromagic",
":net_helpers",
":null_socket_server",
":refcount",
":rtc_base_tests_utils",
":socket",
":socket_address",

View File

@ -63,6 +63,7 @@ rtc_library("video_file_reader") {
"../api/video:video_rtp_headers",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
]
absl_deps = [
@ -113,6 +114,7 @@ rtc_library("video_quality_analysis") {
"../common_video",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../test:perf_test",
"//third_party/libyuv",
@ -381,6 +383,7 @@ if (!build_with_chromium) {
"../rtc_base:ignore_wundef",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
# TODO(kwiberg): Remove this dependency.
"../api/audio_codecs:audio_codecs_api",

View File

@ -234,6 +234,7 @@ if (is_ios || is_mac) {
"../modules/audio_device:audio_device_generic",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../system_wrappers",
]
@ -279,6 +280,7 @@ if (is_ios || is_mac) {
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:threading",
"../system_wrappers:field_trial",
"../system_wrappers:metrics",
@ -868,6 +870,7 @@ if (is_ios || is_mac) {
"../api/video_codecs:video_codecs_api",
"../modules/video_coding:video_codec_interface",
"../rtc_base",
"../rtc_base:refcount",
]
}
@ -1104,6 +1107,7 @@ if (is_ios || is_mac) {
"../rtc_base",
"../rtc_base:gunit_helpers",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base/system:unused",
"../system_wrappers",
"//third_party/libyuv",
@ -1576,6 +1580,7 @@ if (is_ios || is_mac) {
"../common_video",
"../rtc_base",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:threading",
]
if (is_ios) {

View File

@ -588,6 +588,7 @@ if (current_os == "linux" || is_android) {
"../../rtc_base:ip_address",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:threading",
"../../rtc_base/task_utils:pending_task_safety_flag",
@ -692,6 +693,7 @@ if (current_os == "linux" || is_android) {
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:refcount",
"../../rtc_base:rtc_task_queue",
"../../rtc_base:threading",
"../../rtc_base/synchronization:mutex",
@ -796,6 +798,7 @@ if (current_os == "linux" || is_android) {
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_task_queue",
"../../rtc_base:threading",
@ -983,6 +986,7 @@ if (current_os == "linux" || is_android) {
"../../modules/audio_device",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../system_wrappers",
"../../system_wrappers:metrics",
@ -1075,6 +1079,7 @@ if (current_os == "linux" || is_android) {
":native_api_jni",
":video_jni",
":videoframe_jni",
"../../rtc_base:refcount",
"../../rtc_base:threading",
"//api:libjingle_peerconnection_api",
"//api:media_stream_interface",
@ -1128,6 +1133,7 @@ if (current_os == "linux" || is_android) {
"../../common_video",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
]
}
@ -1169,6 +1175,7 @@ if (current_os == "linux" || is_android) {
"../../modules/audio_device:audio_device_buffer",
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../system_wrappers:metrics",
]

View File

@ -415,6 +415,7 @@ webrtc_fuzzer_test("residual_echo_detector_fuzzer") {
deps = [
"../../api/audio:echo_detector_creator",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
]
}

View File

@ -125,6 +125,7 @@ if (rtc_include_tests && !build_with_chromium) {
"../../modules/video_coding:webrtc_vp9",
"../../rtc_base",
"../../rtc_base:checks",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base:rtc_numerics",

View File

@ -469,6 +469,7 @@ rtc_library("video_stream_encoder_impl") {
"../rtc_base:criticalsection",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_event",
"../rtc_base:rtc_numerics",
@ -894,6 +895,7 @@ if (rtc_include_tests) {
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:rate_limiter",
"../rtc_base:refcount",
"../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../rtc_base:rtc_numerics",

View File

@ -50,6 +50,7 @@ rtc_library("video_adaptation") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:refcount",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_event",
"../../rtc_base:rtc_numerics",