chromium/base/power_monitor/power_monitor.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/power_monitor/power_monitor.h"

#include <utility>

#include "base/logging.h"
#include "base/no_destructor.h"
#include "base/power_monitor/power_monitor_source.h"
#include "base/trace_event/base_tracing.h"
#include "build/build_config.h"

namespace base {

void PowerMonitor::Initialize(std::unique_ptr<PowerMonitorSource> source) {}

bool PowerMonitor::IsInitialized() {}

// static
void PowerMonitor::AddPowerSuspendObserver(PowerSuspendObserver* obs) {}

// static
void PowerMonitor::RemovePowerSuspendObserver(PowerSuspendObserver* obs) {}

// static
void PowerMonitor::AddPowerStateObserver(PowerStateObserver* obs) {}

// static
void PowerMonitor::RemovePowerStateObserver(PowerStateObserver* obs) {}

// static
void PowerMonitor::AddPowerThermalObserver(PowerThermalObserver* obs) {}

// static
void PowerMonitor::RemovePowerThermalObserver(PowerThermalObserver* obs) {}

// static
bool PowerMonitor::AddPowerSuspendObserverAndReturnSuspendedState(
    PowerSuspendObserver* obs) {}

// static
bool PowerMonitor::AddPowerStateObserverAndReturnOnBatteryState(
    PowerStateObserver* obs) {}

PowerStateObserver::BatteryPowerStatus
PowerMonitor::AddPowerStateObserverAndReturnBatteryPowerStatus(
    PowerStateObserver* obs) {}

// static
PowerThermalObserver::DeviceThermalState
PowerMonitor::AddPowerStateObserverAndReturnPowerThermalState(
    PowerThermalObserver* obs) {}

PowerMonitorSource* PowerMonitor::Source() {}

bool PowerMonitor::IsOnBatteryPower() {}

PowerStateObserver::BatteryPowerStatus PowerMonitor::GetBatteryPowerStatus() {}

TimeTicks PowerMonitor::GetLastSystemResumeTime() {}

void PowerMonitor::ShutdownForTesting() {}

// static
PowerThermalObserver::DeviceThermalState
PowerMonitor::GetCurrentThermalState() {}

// static
void PowerMonitor::SetCurrentThermalState(
    PowerThermalObserver::DeviceThermalState state) {}

#if BUILDFLAG(IS_ANDROID)
int PowerMonitor::GetRemainingBatteryCapacity() {
  DCHECK(IsInitialized());
  return PowerMonitor::Source()->GetRemainingBatteryCapacity();
}
#endif  // BUILDFLAG(IS_ANDROID)

void PowerMonitor::NotifyPowerStateChange(bool on_battery_power) {}

void PowerMonitor::NotifyPowerStateChange(
    PowerStateObserver::BatteryPowerStatus battery_power_status) {}

void PowerMonitor::NotifySuspend() {}

void PowerMonitor::NotifyResume() {}

void PowerMonitor::NotifyThermalStateChange(
    PowerThermalObserver::DeviceThermalState new_state) {}

void PowerMonitor::NotifySpeedLimitChange(int speed_limit) {}

PowerMonitor* PowerMonitor::GetInstance() {}

PowerMonitor::PowerMonitor()
    :{}

PowerMonitor::~PowerMonitor() = default;

}  // namespace base