| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Produces |RTCDataChannelStats|. | 94 // Produces |RTCDataChannelStats|. |
| 95 void ProduceDataChannelStats_s( | 95 void ProduceDataChannelStats_s( |
| 96 int64_t timestamp_us, RTCStatsReport* report) const; | 96 int64_t timestamp_us, RTCStatsReport* report) const; |
| 97 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. | 97 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. |
| 98 void ProduceIceCandidateAndPairStats_s( | 98 void ProduceIceCandidateAndPairStats_s( |
| 99 int64_t timestamp_us, const SessionStats& session_stats, | 99 int64_t timestamp_us, const SessionStats& session_stats, |
| 100 RTCStatsReport* report) const; | 100 RTCStatsReport* report) const; |
| 101 // Produces |RTCPeerConnectionStats|. | 101 // Produces |RTCPeerConnectionStats|. |
| 102 void ProducePeerConnectionStats_s( | 102 void ProducePeerConnectionStats_s( |
| 103 int64_t timestamp_us, RTCStatsReport* report) const; | 103 int64_t timestamp_us, RTCStatsReport* report) const; |
| 104 // Produces |RTCOutboundRTPStreamStats|. TODO(hbos): Produce both types of |
| 105 // |RTCRTPStreamStats|, the other one being |RTCInboundRTPStreamStats|. |
| 106 // crbug.com/657855 |
| 107 void ProduceRTPStreamStats_s( |
| 108 int64_t timestamp_us, const SessionStats& session_stats, |
| 109 RTCStatsReport* report) const; |
| 104 // Produces |RTCTransportStats|. | 110 // Produces |RTCTransportStats|. |
| 105 void ProduceTransportStats_s( | 111 void ProduceTransportStats_s( |
| 106 int64_t timestamp_us, const SessionStats& session_stats, | 112 int64_t timestamp_us, const SessionStats& session_stats, |
| 107 const std::map<std::string, CertificateStatsPair>& transport_cert_stats, | 113 const std::map<std::string, CertificateStatsPair>& transport_cert_stats, |
| 108 RTCStatsReport* report) const; | 114 RTCStatsReport* report) const; |
| 109 | 115 |
| 110 // Helper function to stats-producing functions. | 116 // Helper function to stats-producing functions. |
| 111 std::map<std::string, CertificateStatsPair> | 117 std::map<std::string, CertificateStatsPair> |
| 112 PrepareTransportCertificateStats_s(const SessionStats& session_stats) const; | 118 PrepareTransportCertificateStats_s(const SessionStats& session_stats) const; |
| 113 | 119 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 132 }; | 138 }; |
| 133 | 139 |
| 134 const char* CandidateTypeToRTCIceCandidateTypeForTesting( | 140 const char* CandidateTypeToRTCIceCandidateTypeForTesting( |
| 135 const std::string& type); | 141 const std::string& type); |
| 136 const char* DataStateToRTCDataChannelStateForTesting( | 142 const char* DataStateToRTCDataChannelStateForTesting( |
| 137 DataChannelInterface::DataState state); | 143 DataChannelInterface::DataState state); |
| 138 | 144 |
| 139 } // namespace webrtc | 145 } // namespace webrtc |
| 140 | 146 |
| 141 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ | 147 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ |
| OLD | NEW |