#include "third_party/blink/renderer/modules/peerconnection/thermal_uma_listener.h"
#include <memory>
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/notreached.h"
#include "base/task/sequenced_task_runner.h"
#include "third_party/blink/public/mojom/peerconnection/peer_connection_tracker.mojom-blink.h"
namespace blink {
namespace {
const base::TimeDelta kStatsReportingPeriod = …;
enum class ThermalStateUMA { … };
ThermalStateUMA ToThermalStateUMA(mojom::blink::DeviceThermalState state) { … }
}
std::unique_ptr<ThermalUmaListener> ThermalUmaListener::Create(
scoped_refptr<base::SequencedTaskRunner> task_runner) { … }
ThermalUmaListener::ThermalUmaListener(
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
void ThermalUmaListener::OnThermalMeasurement(
mojom::blink::DeviceThermalState measurement) { … }
void ThermalUmaListener::ScheduleReport() { … }
void ThermalUmaListener::ReportStats() { … }
}