1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
content / browser / screenlock_monitor / screenlock_monitor_source.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_SCREENLOCK_MONITOR_SCREENLOCK_MONITOR_SOURCE_H_
#define CONTENT_BROWSER_SCREENLOCK_MONITOR_SCREENLOCK_MONITOR_SOURCE_H_
#include "content/common/content_export.h"
namespace content {
// A class to communicate screenlock state changes from each platform-specific
// sub-class source implementation to the screenlock monitor.
class CONTENT_EXPORT ScreenlockMonitorSource {
public:
ScreenlockMonitorSource();
ScreenlockMonitorSource(const ScreenlockMonitorSource&) = delete;
ScreenlockMonitorSource& operator=(const ScreenlockMonitorSource&) = delete;
virtual ~ScreenlockMonitorSource();
enum ScreenlockEvent { SCREEN_LOCK_EVENT, SCREEN_UNLOCK_EVENT };
// ProcessScreenlockEvent should only be called from a single thread.
static void ProcessScreenlockEvent(ScreenlockEvent event_id);
};
} // namespace content
#endif // CONTENT_BROWSER_SCREENLOCK_MONITOR_SCREENLOCK_MONITOR_SOURCE_H_