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 77 matching lines...) Loading... |
88 }; | 88 }; |
89 | 89 |
90 // TODO(guoweis): Keep previous name here until all references are renamed. | 90 // TODO(guoweis): Keep previous name here until all references are renamed. |
91 typedef PeerConnectionMetricsName PeerConnectionUMAMetricsName; | 91 typedef PeerConnectionMetricsName PeerConnectionUMAMetricsName; |
92 | 92 |
93 // The IceCandidatePairType has the format of | 93 // The IceCandidatePairType has the format of |
94 // <local_candidate_type>_<remote_candidate_type>. It is recorded based on the | 94 // <local_candidate_type>_<remote_candidate_type>. It is recorded based on the |
95 // type of candidate pair used when the PeerConnection first goes to a completed | 95 // type of candidate pair used when the PeerConnection first goes to a completed |
96 // state. When BUNDLE is enabled, only the first transport gets recorded. | 96 // state. When BUNDLE is enabled, only the first transport gets recorded. |
97 enum IceCandidatePairType { | 97 enum IceCandidatePairType { |
| 98 // HostHost is deprecated. It was replaced with the set of types at the bottom |
| 99 // to report private or public host IP address. |
98 kIceCandidatePairHostHost, | 100 kIceCandidatePairHostHost, |
99 kIceCandidatePairHostSrflx, | 101 kIceCandidatePairHostSrflx, |
100 kIceCandidatePairHostRelay, | 102 kIceCandidatePairHostRelay, |
101 kIceCandidatePairHostPrflx, | 103 kIceCandidatePairHostPrflx, |
102 kIceCandidatePairSrflxHost, | 104 kIceCandidatePairSrflxHost, |
103 kIceCandidatePairSrflxSrflx, | 105 kIceCandidatePairSrflxSrflx, |
104 kIceCandidatePairSrflxRelay, | 106 kIceCandidatePairSrflxRelay, |
105 kIceCandidatePairSrflxPrflx, | 107 kIceCandidatePairSrflxPrflx, |
106 kIceCandidatePairRelayHost, | 108 kIceCandidatePairRelayHost, |
107 kIceCandidatePairRelaySrflx, | 109 kIceCandidatePairRelaySrflx, |
108 kIceCandidatePairRelayRelay, | 110 kIceCandidatePairRelayRelay, |
109 kIceCandidatePairRelayPrflx, | 111 kIceCandidatePairRelayPrflx, |
110 kIceCandidatePairPrflxHost, | 112 kIceCandidatePairPrflxHost, |
111 kIceCandidatePairPrflxSrflx, | 113 kIceCandidatePairPrflxSrflx, |
112 kIceCandidatePairPrflxRelay, | 114 kIceCandidatePairPrflxRelay, |
| 115 |
| 116 // The following 4 types tell whether local and remote hosts have private or |
| 117 // public IP addresses. |
| 118 kIceCandidatePairHostPrivateHostPrivate, |
| 119 kIceCandidatePairHostPrivateHostPublic, |
| 120 kIceCandidatePairHostPublicHostPrivate, |
| 121 kIceCandidatePairHostPublicHostPublic, |
113 kIceCandidatePairMax | 122 kIceCandidatePairMax |
114 }; | 123 }; |
115 | 124 |
116 } // namespace webrtc | 125 } // namespace webrtc |
117 | 126 |
118 #endif // TALK_APP_WEBRTC_UMAMETRICS_H_ | 127 #endif // TALK_APP_WEBRTC_UMAMETRICS_H_ |
OLD | NEW |