#include "chrome/browser/battery/battery_metrics.h"
#include <cmath>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/metrics/histogram_macros.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "content/public/browser/device_service.h"
#include "services/device/public/mojom/battery_status.mojom.h"
namespace {
BatteryMetrics::BatteryMonitorBinder& GetBinderOverride() { … }
}
BatteryMetrics::BatteryMetrics() { … }
BatteryMetrics::~BatteryMetrics() = default;
void BatteryMetrics::OverrideBatteryMonitorBinderForTesting(
BatteryMonitorBinder binder) { … }
void BatteryMetrics::QueryNextStatus() { … }
void BatteryMetrics::StartRecording() { … }
void BatteryMetrics::DidChange(device::mojom::BatteryStatusPtr battery_status) { … }
void BatteryMetrics::RecordBatteryDropUMA(
const device::mojom::BatteryStatus& battery_status) { … }