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

Unified Diff: talk/app/webrtc/umametrics.h

Issue 1337673002: Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 months 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
Index: talk/app/webrtc/umametrics.h
diff --git a/talk/app/webrtc/umametrics.h b/talk/app/webrtc/umametrics.h
index 8eaed6d2ff58ec291c6d4e2b4b24909b890bda46..ee0e932a723700a91fbb83ff30c993a80a85597d 100644
--- a/talk/app/webrtc/umametrics.h
+++ b/talk/app/webrtc/umametrics.h
@@ -42,6 +42,13 @@ enum PeerConnectionEnumCounterType {
// to the TURN server in the case of TURN candidates.
kEnumCounterIceCandidatePairTypeUdp,
kEnumCounterIceCandidatePairTypeTcp,
+
+ kEnumCounterAudioSrtpCipher,
+ kEnumCounterAudioSslCipher,
+ kEnumCounterVideoSrtpCipher,
+ kEnumCounterVideoSslCipher,
+ kEnumCounterDataSrtpCipher,
+ kEnumCounterDataSslCipher,
kPeerConnectionEnumCounterMax
};
@@ -78,12 +85,6 @@ enum PeerConnectionMetricsName {
kTimeToConnect, // In milliseconds.
kLocalCandidates_IPv4, // Number of IPv4 local candidates.
kLocalCandidates_IPv6, // Number of IPv6 local candidates.
- kAudioSrtpCipher, // Name of SRTP cipher used in audio channel.
- kAudioSslCipher, // Name of SSL cipher used in audio channel.
- kVideoSrtpCipher, // Name of SRTP cipher used in video channel.
- kVideoSslCipher, // Name of SSL cipher used in video channel.
- kDataSrtpCipher, // Name of SRTP cipher used in data channel.
- kDataSslCipher, // Name of SSL cipher used in data channel.
kPeerConnectionMetricsName_Max
};
@@ -122,6 +123,17 @@ enum IceCandidatePairType {
kIceCandidatePairMax
};
+// The same list as SrtpCipherMap from opensslstsreamadapter.cc. Must be kept
juberti 2015/09/24 21:37:32 We should use the IDs from https://tools.ietf.org/
guoweis_webrtc 2015/09/25 18:30:31 Done.
+// the same as the order in histograms.xml.
+enum SrtpCipherType {
+ SrtpCipher_Unknown,
+ SrtpCipher_AES_CM_128_HMAC_SHA1_32,
+ SrtpCipher_AES_CM_128_HMAC_SHA1_80,
+ SrtpCipher_Max,
juberti 2015/09/24 21:37:32 Why do we have these _Max values?
guoweis_webrtc 2015/09/25 18:30:32 Done.
+};
+
+SrtpCipherType GetSrtpCipherType(const std::string& cipher);
+
} // namespace webrtc
#endif // TALK_APP_WEBRTC_UMAMETRICS_H_

Powered by Google App Engine
This is Rietveld 408576698