#include "content/browser/idle/idle_manager_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/permission_controller.h"
#include "content/public/browser/render_frame_host.h"
#include "third_party/blink/public/common/permissions/permission_utils.h"
namespace content {
namespace {
IdleManagerError;
IdleState;
PermissionStatus;
constexpr base::TimeDelta kUserInputThreshold = …;
}
IdleManagerImpl::IdleManagerImpl(RenderFrameHost* render_frame_host)
: … { … }
IdleManagerImpl::~IdleManagerImpl() { … }
void IdleManagerImpl::CreateService(
mojo::PendingReceiver<blink::mojom::IdleManager> receiver) { … }
void IdleManagerImpl::SetIdleOverride(bool is_user_active,
bool is_screen_unlocked) { … }
void IdleManagerImpl::ClearIdleOverride() { … }
void IdleManagerImpl::AddMonitor(
mojo::PendingRemote<blink::mojom::IdleMonitor> monitor_remote,
AddMonitorCallback callback) { … }
bool IdleManagerImpl::HasPermission() { … }
void IdleManagerImpl::OnMonitorDisconnected(mojo::RemoteSetElementId id) { … }
void IdleManagerImpl::OnIdleStateChange(
const ui::IdlePollingService::State& state) { … }
blink::mojom::IdleStatePtr IdleManagerImpl::CreateIdleState(
const ui::IdlePollingService::State& state) { … }
blink::mojom::IdleStatePtr IdleManagerImpl::CheckIdleState() { … }
}