#include "services/device/public/cpp/power_monitor/power_monitor_broadcast_source.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace device {
PowerMonitorBroadcastSource::PowerMonitorBroadcastSource(
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
PowerMonitorBroadcastSource::PowerMonitorBroadcastSource(
std::unique_ptr<Client> client,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
PowerMonitorBroadcastSource::~PowerMonitorBroadcastSource() { … }
void PowerMonitorBroadcastSource::Init(
mojo::PendingRemote<mojom::PowerMonitor> remote_monitor) { … }
bool PowerMonitorBroadcastSource::IsOnBatteryPower() { … }
PowerMonitorBroadcastSource::Client::Client() = default;
PowerMonitorBroadcastSource::Client::~Client() { … }
void PowerMonitorBroadcastSource::Client::Init(
mojo::PendingRemote<mojom::PowerMonitor> remote_monitor) { … }
void PowerMonitorBroadcastSource::Client::PowerStateChange(
bool on_battery_power) { … }
void PowerMonitorBroadcastSource::Client::Suspend() { … }
void PowerMonitorBroadcastSource::Client::Resume() { … }
}