diff --git a/api/candidate.h b/api/candidate.h index d48f4fc559..3fefd1114b 100644 --- a/api/candidate.h +++ b/api/candidate.h @@ -24,6 +24,10 @@ #include "rtc_base/socket_address.h" #include "rtc_base/system/rtc_export.h" +namespace webrtc { +enum class IceCandidateType : int { kHost, kSrflx, kPrflx, kRelay }; +} // namespace webrtc + namespace cricket { // TODO(tommi): These are temporarily here, moved from `port.h` and will diff --git a/logging/BUILD.gn b/logging/BUILD.gn index 415c52789c..117d5c4a3c 100644 --- a/logging/BUILD.gn +++ b/logging/BUILD.gn @@ -688,6 +688,7 @@ rtc_library("ice_log") { deps = [ ":rtc_event_field", + "../api:candidate", "../api:dtls_transport_interface", "../api:libjingle_logging_api", "../api/rtc_event_log", diff --git a/logging/rtc_event_log/events/rtc_event_ice_candidate_pair_config.h b/logging/rtc_event_log/events/rtc_event_ice_candidate_pair_config.h index 14984b324f..8198659cb2 100644 --- a/logging/rtc_event_log/events/rtc_event_ice_candidate_pair_config.h +++ b/logging/rtc_event_log/events/rtc_event_ice_candidate_pair_config.h @@ -18,6 +18,7 @@ #include #include "absl/strings/string_view.h" +#include "api/candidate.h" #include "api/rtc_event_log/rtc_event.h" #include "api/units/timestamp.h" #include "logging/rtc_event_log/events/rtc_event_field_encoding_parser.h" @@ -32,14 +33,6 @@ enum class IceCandidatePairConfigType { kNumValues, }; -// TODO(tommi): Move this definition to candidate.h. -enum class IceCandidateType { - kHost, - kSrflx, - kPrflx, - kRelay, -}; - enum class IceCandidatePairProtocol { kUnknown, kUdp,