From ad82b6e45b0c8b0ab504b5cf4a87f410baa59b32 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Tue, 11 Feb 2025 11:56:21 -0800 Subject: [PATCH] IWYU candidate_pair_interface and remove the forward declaration BUG=webrtc:42226242 Change-Id: I6bff2ef5048e641c834f9e03620ce038f6513065 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/376920 Reviewed-by: Danil Chapovalov Reviewed-by: Harald Alvestrand Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/main@{#43941} --- p2p/BUILD.gn | 1 + p2p/base/candidate_pair_interface.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/p2p/BUILD.gn b/p2p/BUILD.gn index ed7321384d..6dafc83b41 100644 --- a/p2p/BUILD.gn +++ b/p2p/BUILD.gn @@ -145,6 +145,7 @@ rtc_library("basic_port_allocator") { rtc_source_set("candidate_pair_interface") { sources = [ "base/candidate_pair_interface.h" ] + deps = [ "../api:candidate" ] } rtc_library("connection") { diff --git a/p2p/base/candidate_pair_interface.h b/p2p/base/candidate_pair_interface.h index a04ab130cf..55769dcea7 100644 --- a/p2p/base/candidate_pair_interface.h +++ b/p2p/base/candidate_pair_interface.h @@ -11,9 +11,9 @@ #ifndef P2P_BASE_CANDIDATE_PAIR_INTERFACE_H_ #define P2P_BASE_CANDIDATE_PAIR_INTERFACE_H_ -namespace cricket { +#include "api/candidate.h" -class Candidate; +namespace cricket { class CandidatePairInterface { public: