blob: ead8dcc49dc95da68796ec968368a3bf4fdd5a44 [file] [log] [blame]
[email protected]1784b2f2011-11-24 10:53:481// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
6#define CONTENT_RENDERER_IDLE_USER_DETECTOR_H_
7
avi1023d012015-12-25 02:39:148#include "base/macros.h"
[email protected]c2eaa8f2013-05-10 02:41:559
[email protected]e9ff79c2012-10-19 21:31:2610namespace content {
11
[email protected]1784b2f2011-11-24 10:53:4812// Class which observes user input events and postpones
13// idle notifications if the user is active.
Dave Tapuska04bc5ee92018-04-17 19:03:3114class IdleUserDetector {
[email protected]1784b2f2011-11-24 10:53:4815 public:
Dave Tapuska04bc5ee92018-04-17 19:03:3116 IdleUserDetector();
17 ~IdleUserDetector();
[email protected]1784b2f2011-11-24 10:53:4818
dtapuska9ec1a912017-04-21 15:18:3119 void ActivityDetected();
20
[email protected]1784b2f2011-11-24 10:53:4821 private:
[email protected]1784b2f2011-11-24 10:53:4822
23 DISALLOW_COPY_AND_ASSIGN(IdleUserDetector);
24};
25
[email protected]e9ff79c2012-10-19 21:31:2626} // namespace content
27
[email protected]1784b2f2011-11-24 10:53:4828#endif // CONTENT_RENDERER_IDLE_USER_DETECTOR_H_