OLD | NEW |
---|---|
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 14 matching lines...) Expand all Loading... | |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 // This file contains enums related to IPv4/IPv6 metrics. | 28 // This file contains enums related to IPv4/IPv6 metrics. |
29 | 29 |
30 #ifndef TALK_APP_WEBRTC_UMAMETRICS_H_ | 30 #ifndef TALK_APP_WEBRTC_UMAMETRICS_H_ |
31 #define TALK_APP_WEBRTC_UMAMETRICS_H_ | 31 #define TALK_APP_WEBRTC_UMAMETRICS_H_ |
32 | 32 |
33 namespace webrtc { | 33 namespace webrtc { |
34 | 34 |
35 // Used to specify which enum counter type we're incrementing in | |
36 // MetricsObserverInterface::IncrementEnumCounter. | |
37 enum PeerConnectionEnumCounterType { | |
38 kPeerConnectionEnumCounter_IceEndpointTypeUDP, | |
juberti1
2015/08/14 21:26:04
UDP -> Udp
TCP -> Tcp
Can you add comments explai
| |
39 kPeerConnectionEnumCounter_IceEndpointTypeTCP, | |
40 kPeerConnectionEnumCounter_Max | |
41 }; | |
42 | |
35 // Currently this contains information related to WebRTC network/transport | 43 // Currently this contains information related to WebRTC network/transport |
36 // information. | 44 // information. |
37 | 45 |
38 // The difference between PeerConnectionMetricsCounter and | 46 // The difference between PeerConnectionMetricsCounter and |
39 // PeerConnectionMetricsName is that the "Counter" is only counting the | 47 // PeerConnectionMetricsName is that the "Counter" is only counting the |
40 // occurrences of events, while "Name" has a value associated with it which is | 48 // occurrences of events, while "Name" has a value associated with it which is |
41 // used to form a histogram. | 49 // used to form a histogram. |
42 | 50 |
43 // This enum is backed by Chromium's histograms.xml, | 51 // This enum is backed by Chromium's histograms.xml, |
44 // chromium/src/tools/metrics/histograms/histograms.xml | 52 // chromium/src/tools/metrics/histograms/histograms.xml |
(...skipping 25 matching lines...) Expand all Loading... | |
70 kVideoSrtpCipher, // Name of SRTP cipher used in video channel. | 78 kVideoSrtpCipher, // Name of SRTP cipher used in video channel. |
71 kVideoSslCipher, // Name of SSL cipher used in video channel. | 79 kVideoSslCipher, // Name of SSL cipher used in video channel. |
72 kDataSrtpCipher, // Name of SRTP cipher used in data channel. | 80 kDataSrtpCipher, // Name of SRTP cipher used in data channel. |
73 kDataSslCipher, // Name of SSL cipher used in data channel. | 81 kDataSslCipher, // Name of SSL cipher used in data channel. |
74 kPeerConnectionMetricsName_Max | 82 kPeerConnectionMetricsName_Max |
75 }; | 83 }; |
76 | 84 |
77 // TODO(guoweis): Keep previous name here until all references are renamed. | 85 // TODO(guoweis): Keep previous name here until all references are renamed. |
78 typedef PeerConnectionMetricsName PeerConnectionUMAMetricsName; | 86 typedef PeerConnectionMetricsName PeerConnectionUMAMetricsName; |
79 | 87 |
88 // The IceEndpointType has the format of <local_endpoint>_<remote_endpoint>. It | |
89 // is recorded on the BestConnection when we have the first OnTransportCompleted | |
90 // signaled. | |
91 enum IceEndpointType { | |
juberti1
2015/08/14 21:26:04
I think this should be IceCandidatePairType?
| |
92 kIceEndpoint_Host_Host, | |
93 kIceEndpoint_Host_Srflx, | |
94 kIceEndpoint_Host_Relay, | |
95 kIceEndpoint_Host_Prflx, | |
96 kIceEndpoint_Srflx_Host, | |
97 kIceEndpoint_Srflx_Srflx, | |
98 kIceEndpoint_Srflx_Relay, | |
99 kIceEndpoint_Srflx_Prflx, | |
100 kIceEndpoint_Relay_Host, | |
101 kIceEndpoint_Relay_Srflx, | |
102 kIceEndpoint_Relay_Relay, | |
103 kIceEndpoint_Relay_Prflx, | |
104 kIceEndpoint_Prflx_Host, | |
105 kIceEndpoint_Prflx_Srflx, | |
106 kIceEndpoint_Prflx_Relay, | |
107 kIceEndpoint_Max | |
108 }; | |
109 | |
80 } // namespace webrtc | 110 } // namespace webrtc |
81 | 111 |
82 #endif // TALK_APP_WEBRTC_UMA6METRICS_H_ | 112 #endif // TALK_APP_WEBRTC_UMA6METRICS_H_ |
OLD | NEW |