#include "content/browser/wake_lock/wake_lock_context_host.h"
#include "base/atomic_sequence_num.h"
#include "base/lazy_instance.h"
#include "content/public/browser/device_service.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/public/mojom/wake_lock_provider.mojom.h"
namespace content {
namespace {
base::AtomicSequenceNumber g_unique_id;
base::LazyInstance<std::map<int, WakeLockContextHost*>>::Leaky
g_id_to_context_host = …;
WakeLockContextHost* ContextHostFromId(int id) { … }
}
WakeLockContextHost::WakeLockContextHost(WebContents* web_contents)
: … { … }
WakeLockContextHost::~WakeLockContextHost() { … }
gfx::NativeView WakeLockContextHost::GetNativeViewForContext(int context_id) { … }
}