#include "remoting/host/host_event_logger.h"
#include "base/logging.h"
#include <syslog.h>
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/stringprintf.h"
#include "net/base/ip_endpoint.h"
#include "remoting/host/host_status_monitor.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/protocol/transport.h"
namespace remoting {
namespace {
class HostEventLoggerPosix : public HostEventLogger, public HostStatusObserver { … };
}
HostEventLoggerPosix::HostEventLoggerPosix(
scoped_refptr<HostStatusMonitor> monitor,
const std::string& application_name)
: … { … }
HostEventLoggerPosix::~HostEventLoggerPosix() { … }
void HostEventLoggerPosix::OnClientAuthenticated(
const std::string& signaling_id) { … }
void HostEventLoggerPosix::OnClientDisconnected(
const std::string& signaling_id) { … }
void HostEventLoggerPosix::OnClientAccessDenied(
const std::string& signaling_id) { … }
void HostEventLoggerPosix::OnClientRouteChange(
const std::string& signaling_id,
const std::string& channel_name,
const protocol::TransportRoute& route) { … }
void HostEventLoggerPosix::OnHostShutdown() { … }
void HostEventLoggerPosix::OnHostStarted(const std::string& user_email) { … }
void HostEventLoggerPosix::Log(const std::string& message) { … }
std::unique_ptr<HostEventLogger> HostEventLogger::Create(
scoped_refptr<HostStatusMonitor> monitor,
const std::string& application_name) { … }
}