blob: e66ac3b998e1687b0407a1ee840f81c7a596a6a9 [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
8#include <string>
9
10namespace 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.
Ben Chan89cf29e2011-08-10 13:11:05 -070015class SessionManagerObserverInterface {
Ben Chan6e726922011-06-28 15:54:32 -070016 public:
Ben Chan89cf29e2011-08-10 13:11:05 -070017 virtual ~SessionManagerObserverInterface() {}
Ben Chan6e726922011-06-28 15:54:32 -070018
19 // This method is called when a session has started.
20 virtual void OnSessionStarted(const std::string& user) = 0;
21
22 // This method is called when a session has stopped.
23 virtual void OnSessionStopped(const std::string& user) = 0;
24};
25
26} // namespace cros_disks
27
Ben Chan89cf29e2011-08-10 13:11:05 -070028#endif // CROS_DISKS_SESSION_MANAGER_OBSERVER_INTERFACE_H_