blob: a2a676361f0e8dcfd36b82898bba6db448bdf143 [file] [log] [blame]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEBUGD_SRC_SESSION_MANAGER_OBSERVER_INTERFACE_H_
#define DEBUGD_SRC_SESSION_MANAGER_OBSERVER_INTERFACE_H_
#include "base/observer_list_types.h"
namespace debugd {
// An interface class for observing events from the session manager.
// A derived class of this class should override the event methods
// that it would like to observe.
class SessionManagerObserverInterface : public base::CheckedObserver {
public:
virtual ~SessionManagerObserverInterface() = default;
// This method is called when a session has started.
virtual void OnSessionStarted() = 0;
// This method is called when a session has stopped.
virtual void OnSessionStopped() = 0;
};
} // namespace debugd
#endif // DEBUGD_SRC_SESSION_MANAGER_OBSERVER_INTERFACE_H_