summaryrefslogtreecommitdiff
path: root/chromium/content/browser/idle/idle_manager_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/idle/idle_manager_impl.h')
-rw-r--r--chromium/content/browser/idle/idle_manager_impl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/content/browser/idle/idle_manager_impl.h b/chromium/content/browser/idle/idle_manager_impl.h
index ad6cc18fd22..25b404ccf26 100644
--- a/chromium/content/browser/idle/idle_manager_impl.h
+++ b/chromium/content/browser/idle/idle_manager_impl.h
@@ -47,6 +47,10 @@ class CONTENT_EXPORT IdleManagerImpl : public IdleManager,
mojo::PendingRemote<blink::mojom::IdleMonitor> monitor_remote,
AddMonitorCallback callback) final;
+ void SetIdleOverride(blink::mojom::UserIdleState user_state,
+ blink::mojom::ScreenIdleState screen_state) override;
+ void ClearIdleOverride() override;
+
private:
// Check permission controller to see if the notification permission is
// enabled for the origin.
@@ -76,6 +80,8 @@ class CONTENT_EXPORT IdleManagerImpl : public IdleManager,
base::RepeatingTimer poll_timer_;
std::unique_ptr<IdleTimeProvider> idle_time_provider_;
+ blink::mojom::IdleStatePtr state_override_;
+
// Raw pointer should always be valid. IdleManagerImpl is owned by the
// StoragePartitionImpl which is owned by BrowserContext. Therefore when the
// BrowserContext is destroyed, |this| will be destroyed as well.