#include "third_party/blink/renderer/modules/wake_lock/wake_lock_manager.h"
#include "base/check_op.h"
#include "base/not_fatal_until.h"
#include "third_party/blink/public/mojom/wake_lock/wake_lock.mojom-blink.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/wake_lock/wake_lock_sentinel.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
WakeLockManager::WakeLockManager(ExecutionContext* execution_context,
V8WakeLockType::Enum type)
: … { … }
void WakeLockManager::AcquireWakeLock(
ScriptPromiseResolver<WakeLockSentinel>* resolver) { … }
void WakeLockManager::UnregisterSentinel(WakeLockSentinel* sentinel) { … }
void WakeLockManager::ClearWakeLocks() { … }
void WakeLockManager::OnWakeLockConnectionError() { … }
void WakeLockManager::Trace(Visitor* visitor) const { … }
}