#include "components/download/internal/background_service/scheduler/battery_status_listener_impl.h"
#include "components/download/internal/background_service/scheduler/device_status.h"
namespace download {
BatteryStatusListenerImpl::BatteryStatusListenerImpl(
const base::TimeDelta& battery_query_interval)
: … { … }
BatteryStatusListenerImpl::~BatteryStatusListenerImpl() = default;
int BatteryStatusListenerImpl::GetBatteryPercentage() { … }
bool BatteryStatusListenerImpl::IsOnBatteryPower() { … }
void BatteryStatusListenerImpl::Start(Observer* observer) { … }
void BatteryStatusListenerImpl::Stop() { … }
int BatteryStatusListenerImpl::GetBatteryPercentageInternal() { … }
void BatteryStatusListenerImpl::UpdateBatteryPercentage(bool force) { … }
void BatteryStatusListenerImpl::OnPowerStateChange(bool on_battery_power) { … }
}