#ifndef REMOTING_HOST_HOST_UTMP_LOGGER_H_
#define REMOTING_HOST_HOST_UTMP_LOGGER_H_
#include "base/containers/flat_map.h"
#include "remoting/host/host_status_observer.h"
namespace remoting {
class HostStatusMonitor;
class HostUTMPLogger : public HostStatusObserver {
public:
explicit HostUTMPLogger(scoped_refptr<HostStatusMonitor> monitor);
HostUTMPLogger(const HostUTMPLogger&) = delete;
HostUTMPLogger& operator=(const HostUTMPLogger&) = delete;
~HostUTMPLogger() override;
void OnClientConnected(const std::string& signaling_id) override;
void OnClientDisconnected(const std::string& signaling_id) override;
private:
base::flat_map<std::string, int> pty_;
scoped_refptr<HostStatusMonitor> monitor_;
};
}
#endif