#include "components/mirroring/service/openscreen_stats_client.h"
#include <stdint.h>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "media/cast/logging/stats_event_subscriber.h"
namespace mirroring {
namespace {
media::cast::StatsEventSubscriber::CastStat StatisticTypeToCastStat(
const openscreen::cast::StatisticType& stat_type) { … }
media::cast::StatsEventSubscriber::CastStat HistogramTypeToCastStat(
const openscreen::cast::HistogramType& histogram_type) { … }
}
OpenscreenStatsClient::OpenscreenStatsClient() = default;
OpenscreenStatsClient::~OpenscreenStatsClient() = default;
base::Value::Dict OpenscreenStatsClient::GetStats() const { … }
base::Value::Dict OpenscreenStatsClient::ConvertSenderStatsToDict(
const openscreen::cast::SenderStats& updated_stats) const { … }
base::Value::Dict OpenscreenStatsClient::ConvertStatisticsListToDict(
const openscreen::cast::SenderStats::StatisticsList& stats_list) const { … }
base::Value::Dict OpenscreenStatsClient::ConvertHistogramsListToDict(
const openscreen::cast::SenderStats::HistogramsList& histograms_list)
const { … }
base::Value::List OpenscreenStatsClient::ConvertOpenscreenHistogramToList(
const openscreen::cast::SimpleHistogram& histogram) const { … }
void OpenscreenStatsClient::OnStatisticsUpdated(
const openscreen::cast::SenderStats& updated_stats) { … }
}