RTCIceCandidateStats.isRemote added and collected.
This was added to the spec: https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatestats-isremote
BUG=webrtc:6756, chromium:632723, chromium:627816
Review-Url: https://codereview.webrtc.org/2595003003
Cr-Original-Commit-Position: refs/heads/master@{#15863}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: c3a2b7f4877b09357ab453f698451bdb75c7bc1c
diff --git a/api/stats/rtcstats_objects.h b/api/stats/rtcstats_objects.h
index 429f93b..d18b248 100644
--- a/api/stats/rtcstats_objects.h
+++ b/api/stats/rtcstats_objects.h
@@ -170,6 +170,7 @@
RTCIceCandidateStats(const RTCIceCandidateStats& other);
~RTCIceCandidateStats() override;
+ RTCStatsMember<bool> is_remote;
RTCStatsMember<std::string> ip;
RTCStatsMember<int32_t> port;
RTCStatsMember<std::string> protocol;
@@ -180,8 +181,9 @@
RTCStatsMember<std::string> url;
protected:
- RTCIceCandidateStats(const std::string& id, int64_t timestamp_us);
- RTCIceCandidateStats(std::string&& id, int64_t timestamp_us);
+ RTCIceCandidateStats(
+ const std::string& id, int64_t timestamp_us, bool is_remote);
+ RTCIceCandidateStats(std::string&& id, int64_t timestamp_us, bool is_remote);
};
// In the spec both local and remote varieties are of type RTCIceCandidateStats.