blob: d86cf9e208832540bfab1d1b8ff8005a69efd19e [file] [log] [blame]
Ben Chan6e726922011-06-28 15:54:32 -07001// Copyright (c) 2011 The Chromium OS 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
Ben Chan89cf29e2011-08-10 13:11:05 -07005#ifndef CROS_DISKS_SESSION_MANAGER_OBSERVER_INTERFACE_H_
6#define CROS_DISKS_SESSION_MANAGER_OBSERVER_INTERFACE_H_
Ben Chan6e726922011-06-28 15:54:32 -07007
hscham9d835342020-04-16 15:23:37 +09008#include "base/observer_list_types.h"
9
Ben Chan6e726922011-06-28 15:54:32 -070010namespace cros_disks {
11
12// An interface class for observing events from the session manager.
13// A derived class of this class should override the event methods
14// that it would like to observe.
hscham9d835342020-04-16 15:23:37 +090015class SessionManagerObserverInterface : public base::CheckedObserver {
Ben Chan6e726922011-06-28 15:54:32 -070016 public:
Ben Chan40ecb9b2017-03-08 11:26:07 -080017 virtual ~SessionManagerObserverInterface() = default;
Ben Chan6e726922011-06-28 15:54:32 -070018
Ben Chan5988f292012-09-18 08:32:42 -070019 // This method is called when the screen is locked.
20 virtual void OnScreenIsLocked() = 0;
21
22 // This method is called when the screen is unlocked.
23 virtual void OnScreenIsUnlocked() = 0;
24
Ben Chan6e726922011-06-28 15:54:32 -070025 // This method is called when a session has started.
Ben Chanb3bf8d12013-04-23 13:57:55 -070026 virtual void OnSessionStarted() = 0;
Ben Chan6e726922011-06-28 15:54:32 -070027
28 // This method is called when a session has stopped.
Ben Chanb3bf8d12013-04-23 13:57:55 -070029 virtual void OnSessionStopped() = 0;
Ben Chan6e726922011-06-28 15:54:32 -070030};
31
32} // namespace cros_disks
33
Ben Chan89cf29e2011-08-10 13:11:05 -070034#endif // CROS_DISKS_SESSION_MANAGER_OBSERVER_INTERFACE_H_