Surface CandidatePairChange event
In order to be able to detect and measure context around candidate pair changes.
Bug: webrtc:10419
Change-Id: Iab0d7e7c80d925d1aa44617fc35975fdc6bbc6b9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/147340
Commit-Queue: Alex Drake <alexdrake@google.com>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28779}
diff --git a/p2p/base/port.h b/p2p/base/port.h
index 8e6281f..4251cd4 100644
--- a/p2p/base/port.h
+++ b/p2p/base/port.h
@@ -148,6 +148,13 @@
std::string error_text;
};
+struct CandidatePairChangeEvent {
+ Candidate local_candidate;
+ Candidate remote_candidate;
+ int64_t last_data_received_ms;
+ std::string reason;
+};
+
typedef std::set<rtc::SocketAddress> ServerAddresses;
// Represents a local communication mechanism that can be used to create