#include "media/audio/power_observer_helper.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/power_monitor/power_monitor.h"
#include "base/task/sequenced_task_runner.h"
namespace media {
PowerObserverHelper::PowerObserverHelper(
scoped_refptr<base::SequencedTaskRunner> task_runner,
base::RepeatingClosure suspend_callback,
base::RepeatingClosure resume_callback)
: … { … }
PowerObserverHelper::~PowerObserverHelper() { … }
bool PowerObserverHelper::IsSuspending() const { … }
void PowerObserverHelper::OnSuspend() { … }
void PowerObserverHelper::OnResume() { … }
}