| Index: talk/app/webrtc/umametrics.h
|
| diff --git a/talk/app/webrtc/umametrics.h b/talk/app/webrtc/umametrics.h
|
| index 8eaed6d2ff58ec291c6d4e2b4b24909b890bda46..262e2278f3c165febabe6f5684d770152b9bda8a 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
|
| +// the same as the order in histograms.xml.
|
| +enum SrtpCipherType {
|
| + SrtpCipherType_Unknown,
|
| + SrtpCipherType_AES_CM_128_HMAC_SHA1_32,
|
| + SrtpCipherType_AES_CM_128_HMAC_SHA1_80,
|
| + SrtpCipherType_Max,
|
| +};
|
| +
|
| +SrtpCipherType GetSrtpCipherType(const std::string& cipher);
|
| +
|
| } // namespace webrtc
|
|
|
| #endif // TALK_APP_WEBRTC_UMAMETRICS_H_
|
|
|