Added UMA counters for SDES vs DTLS key agreement
This is required to figure out when we can deprecate and remove
SDES.
Bug: chromium:804275
Change-Id: Ie234e6b3c8f5de8e78dda8d755d955caa61b7aa7
Reviewed-on: https://webrtc-review.googlesource.com/43340
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21746}
diff --git a/api/umametrics.h b/api/umametrics.h
index c512598..2347ac2 100644
--- a/api/umametrics.h
+++ b/api/umametrics.h
@@ -37,6 +37,7 @@
kEnumCounterDtlsHandshakeError,
kEnumCounterIceRegathering,
kEnumCounterIceRestart,
+ kEnumCounterKeyProtocol,
kPeerConnectionEnumCounterMax
};
@@ -111,6 +112,12 @@
kIceCandidatePairMax
};
+enum KeyExchangeProtocolType {
+ kEnumCounterKeyProtocolDtls,
+ kEnumCounterKeyProtocolSdes,
+ kEnumCounterKeyProtocolMax
+};
+
class MetricsObserverInterface : public rtc::RefCountInterface {
public:
// |type| is the type of the enum counter to be incremented. |counter|