Remove superfluous #includes from peer_connection.cc, and add IWYU
Also adds a script that runs iwyu to the tools_webrtc directory.
Bug: webrtc:11995
Change-Id: I2185a9957e3578c2ec6d0d306061a48fcfe840d4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/188800
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32431}
diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc
index d03c292..29fdf3a 100644
--- a/pc/sdp_offer_answer.cc
+++ b/pc/sdp_offer_answer.cc
@@ -11,16 +11,50 @@
#include "pc/sdp_offer_answer.h"
#include <algorithm>
+#include <iterator>
#include <queue>
-#include <set>
+#include <type_traits>
+#include "absl/algorithm/container.h"
+#include "absl/strings/string_view.h"
+#include "api/array_view.h"
+#include "api/crypto/crypto_options.h"
+#include "api/data_channel_interface.h"
+#include "api/dtls_transport_interface.h"
#include "api/media_stream_proxy.h"
+#include "api/rtp_parameters.h"
+#include "api/rtp_receiver_interface.h"
+#include "api/rtp_sender_interface.h"
#include "api/uma_metrics.h"
+#include "media/base/codec.h"
+#include "media/base/media_engine.h"
+#include "media/base/rid_description.h"
+#include "p2p/base/p2p_constants.h"
+#include "p2p/base/p2p_transport_channel.h"
+#include "p2p/base/port.h"
+#include "p2p/base/transport_description.h"
+#include "p2p/base/transport_description_factory.h"
+#include "p2p/base/transport_info.h"
+#include "pc/data_channel_utils.h"
+#include "pc/media_protocol_names.h"
#include "pc/media_stream.h"
-#include "pc/media_stream_observer.h"
#include "pc/peer_connection.h"
#include "pc/peer_connection_message_handler.h"
+#include "pc/rtp_data_channel.h"
#include "pc/rtp_media_utils.h"
+#include "pc/rtp_transport_internal.h"
+#include "pc/simulcast_description.h"
+#include "pc/usage_pattern.h"
+#include "rtc_base/bind.h"
+#include "rtc_base/helpers.h"
+#include "rtc_base/location.h"
+#include "rtc_base/logging.h"
+#include "rtc_base/ref_counted_object.h"
+#include "rtc_base/socket_address.h"
+#include "rtc_base/ssl_stream_adapter.h"
+#include "rtc_base/string_encode.h"
+#include "rtc_base/strings/string_builder.h"
+#include "rtc_base/third_party/sigslot/sigslot.h"
#include "rtc_base/trace_event.h"
#include "system_wrappers/include/metrics.h"