Removing unnecessary dependencies on socket.h.

Since rtc:SentPacket was removed to a separate header. Some usages of
socket.h can be replaced with sent_packet.h which defines a lot less
things, making future maintenance simpler.

Bug: webrtc:9586
Change-Id: If705edda293c389cf2a175117db52a6720a7be86
Reviewed-on: https://webrtc-review.googlesource.com/c/106144
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25201}
This commit is contained in:
Sebastian Jansson 2018-10-15 21:06:26 +02:00 committed by Commit Bot
parent 03d28012a7
commit 12985414b9
9 changed files with 12 additions and 6 deletions

View File

@ -43,6 +43,7 @@ rtc_source_set("call_interfaces") {
"../rtc_base:audio_format_to_string",
"../rtc_base:rtc_base",
"../rtc_base:rtc_base_approved",
"../rtc_base/network:sent_packet",
"//third_party/abseil-cpp/absl/types:optional",
]
}
@ -427,6 +428,7 @@ if (rtc_include_tests) {
"../modules/pacing",
"../rtc_base:rate_limiter",
"../rtc_base:rtc_base",
"../rtc_base/network:sent_packet",
"../test:test_support",
]
}

View File

@ -27,8 +27,8 @@
#include "common_types.h" // NOLINT(build/include)
#include "rtc_base/bitrateallocationstrategy.h"
#include "rtc_base/copyonwritebuffer.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/networkroute.h"
#include "rtc_base/socket.h"
namespace webrtc {

View File

@ -20,9 +20,9 @@
#include "call/rtp_transport_controller_send_interface.h"
#include "modules/congestion_controller/include/network_changed_observer.h"
#include "modules/pacing/packet_router.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/networkroute.h"
#include "rtc_base/rate_limiter.h"
#include "rtc_base/socket.h"
#include "test/gmock.h"
namespace webrtc {

View File

@ -41,6 +41,7 @@ rtc_static_library("congestion_controller") {
"../../rtc_base:checks",
"../../rtc_base:ptr_util",
"../../rtc_base:rate_limiter",
"../../rtc_base/network:sent_packet",
"../../system_wrappers",
"../../system_wrappers:field_trial",
"../bitrate_controller",
@ -110,6 +111,7 @@ if (rtc_include_tests) {
"../../rtc_base:rtc_base",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_base_tests_utils",
"../../rtc_base/network:sent_packet",
"../../system_wrappers",
"../../test:field_trial",
"../../test:test_support",

View File

@ -43,6 +43,7 @@ rtc_static_library("congestion_controller") {
"../../../rtc_base:safe_minmax",
"../../../rtc_base:sequenced_task_checker",
"../../../rtc_base/experiments:congestion_controller_experiment",
"../../../rtc_base/network:sent_packet",
"../../../system_wrappers",
"../../../system_wrappers:field_trial",
"../../pacing",
@ -131,6 +132,7 @@ if (rtc_include_tests) {
"../../../rtc_base:rtc_base",
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base:rtc_base_tests_utils",
"../../../rtc_base/network:sent_packet",
"../../../system_wrappers",
"../../../test:field_trial",
"../../../test:test_support",

View File

@ -23,11 +23,11 @@
#include "rtc_base/event.h"
#include "rtc_base/format_macros.h"
#include "rtc_base/logging.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/numerics/safe_minmax.h"
#include "rtc_base/rate_limiter.h"
#include "rtc_base/sequenced_task_checker.h"
#include "rtc_base/socket.h"
#include "rtc_base/timeutils.h"
#include "system_wrappers/include/field_trial.h"

View File

@ -17,7 +17,7 @@
#include "modules/remote_bitrate_estimator/include/bwe_defines.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
#include "rtc_base/socket.h"
#include "rtc_base/network/sent_packet.h"
#include "system_wrappers/include/clock.h"
#include "test/field_trial.h"
#include "test/gmock.h"

View File

@ -25,9 +25,9 @@
#include "rtc_base/checks.h"
#include "rtc_base/format_macros.h"
#include "rtc_base/logging.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/rate_limiter.h"
#include "rtc_base/socket.h"
#include "rtc_base/timeutils.h"
#include "system_wrappers/include/field_trial.h"

View File

@ -18,7 +18,7 @@
#include "modules/remote_bitrate_estimator/include/bwe_defines.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
#include "rtc_base/socket.h"
#include "rtc_base/network/sent_packet.h"
#include "system_wrappers/include/clock.h"
#include "test/field_trial.h"
#include "test/gmock.h"