Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Unified Diff: webrtc/stats/rtcstats_objects.cc

Issue 2509803004: RTCCodecStats added (Closed)
Patch Set: Addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/stats/rtcstats_objects.cc
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc
index 54b587b1290f0450b9dd57bd6a3b80ec7ed5755c..46cf0c38b6c5a6431408c5236eecb4509eb26e0d 100644
--- a/webrtc/stats/rtcstats_objects.cc
+++ b/webrtc/stats/rtcstats_objects.cc
@@ -62,6 +62,44 @@ RTCCertificateStats::RTCCertificateStats(
RTCCertificateStats::~RTCCertificateStats() {
}
+WEBRTC_RTCSTATS_IMPL(RTCCodecStats, RTCStats, "codec",
+ &payload_type,
+ &codec,
+ &clock_rate,
+ &channels,
+ &parameters,
+ &implementation);
+
+RTCCodecStats::RTCCodecStats(
+ const std::string& id, int64_t timestamp_us)
+ : RTCCodecStats(std::string(id), timestamp_us) {
+}
+
+RTCCodecStats::RTCCodecStats(
+ std::string&& id, int64_t timestamp_us)
+ : RTCStats(std::move(id), timestamp_us),
+ payload_type("payloadType"),
+ codec("codec"),
+ clock_rate("clockRate"),
+ channels("channels"),
+ parameters("parameters"),
+ implementation("implementation") {
+}
+
+RTCCodecStats::RTCCodecStats(
+ const RTCCodecStats& other)
+ : RTCStats(other.id(), other.timestamp_us()),
+ payload_type(other.payload_type),
+ codec(other.codec),
+ clock_rate(other.clock_rate),
+ channels(other.channels),
+ parameters(other.parameters),
+ implementation(other.implementation) {
+}
+
+RTCCodecStats::~RTCCodecStats() {
+}
+
WEBRTC_RTCSTATS_IMPL(RTCDataChannelStats, RTCStats, "data-channel",
&label,
&protocol,
« no previous file with comments | « webrtc/api/stats/rtcstats_objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698