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

Side by Side Diff: webrtc/api/rtcstatscollector.h

Issue 2462573002: Refactor: Move RTCStatsCollector helper functions to anonymous namespace (Closed)
Patch Set: Renamed kvp transport_cert_stats_pair Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }; 84 };
85 85
86 void AddPartialResults_s(rtc::scoped_refptr<RTCStatsReport> partial_report); 86 void AddPartialResults_s(rtc::scoped_refptr<RTCStatsReport> partial_report);
87 void DeliverCachedReport(); 87 void DeliverCachedReport();
88 88
89 // Produces |RTCCertificateStats|. 89 // Produces |RTCCertificateStats|.
90 void ProduceCertificateStats_s( 90 void ProduceCertificateStats_s(
91 int64_t timestamp_us, 91 int64_t timestamp_us,
92 const std::map<std::string, CertificateStatsPair>& transport_cert_stats, 92 const std::map<std::string, CertificateStatsPair>& transport_cert_stats,
93 RTCStatsReport* report) const; 93 RTCStatsReport* report) const;
94 void ProduceCertificateStatsFromSSLCertificateStats_s(
95 int64_t timestamp_us, const rtc::SSLCertificateStats& certificate_stats,
96 RTCStatsReport* report) const;
97 // Produces |RTCDataChannelStats|. 94 // Produces |RTCDataChannelStats|.
98 void ProduceDataChannelStats_s( 95 void ProduceDataChannelStats_s(
99 int64_t timestamp_us, RTCStatsReport* report) const; 96 int64_t timestamp_us, RTCStatsReport* report) const;
100 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|. 97 // Produces |RTCIceCandidatePairStats| and |RTCIceCandidateStats|.
101 void ProduceIceCandidateAndPairStats_s( 98 void ProduceIceCandidateAndPairStats_s(
102 int64_t timestamp_us, const SessionStats& session_stats, 99 int64_t timestamp_us, const SessionStats& session_stats,
103 RTCStatsReport* report) const; 100 RTCStatsReport* report) const;
104 const std::string& ProduceIceCandidateStats_s(
105 int64_t timestamp_us, const cricket::Candidate& candidate, bool is_local,
106 RTCStatsReport* report) const;
107 // Produces |RTCPeerConnectionStats|. 101 // Produces |RTCPeerConnectionStats|.
108 void ProducePeerConnectionStats_s( 102 void ProducePeerConnectionStats_s(
109 int64_t timestamp_us, RTCStatsReport* report) const; 103 int64_t timestamp_us, RTCStatsReport* report) const;
110 // Produces |RTCTransportStats|. 104 // Produces |RTCTransportStats|.
111 void ProduceTransportStats_s( 105 void ProduceTransportStats_s(
112 int64_t timestamp_us, const SessionStats& session_stats, 106 int64_t timestamp_us, const SessionStats& session_stats,
113 const std::map<std::string, CertificateStatsPair>& transport_cert_stats, 107 const std::map<std::string, CertificateStatsPair>& transport_cert_stats,
114 RTCStatsReport* report) const; 108 RTCStatsReport* report) const;
115 109
116 // Helper function to stats-producing functions. 110 // Helper function to stats-producing functions.
(...skipping 21 matching lines...) Expand all
138 }; 132 };
139 133
140 const char* CandidateTypeToRTCIceCandidateTypeForTesting( 134 const char* CandidateTypeToRTCIceCandidateTypeForTesting(
141 const std::string& type); 135 const std::string& type);
142 const char* DataStateToRTCDataChannelStateForTesting( 136 const char* DataStateToRTCDataChannelStateForTesting(
143 DataChannelInterface::DataState state); 137 DataChannelInterface::DataState state);
144 138
145 } // namespace webrtc 139 } // namespace webrtc
146 140
147 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_ 141 #endif // WEBRTC_API_RTCSTATSCOLLECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698