#include "pc/rtc_stats_traversal.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/types/optional.h"
#include "api/stats/rtcstats_objects.h"
#include "rtc_base/checks.h"
namespace webrtc {
namespace {
void TraverseAndTakeVisitedStats(RTCStatsReport* report,
RTCStatsReport* visited_report,
const std::string& current_id) { … }
void AddIdIfDefined(const absl::optional<std::string>& id,
std::vector<const std::string*>* neighbor_ids) { … }
}
rtc::scoped_refptr<RTCStatsReport> TakeReferencedStats(
rtc::scoped_refptr<RTCStatsReport> report,
const std::vector<std::string>& ids) { … }
std::vector<const std::string*> GetStatsReferencedIds(const RTCStats& stats) { … }
}