#include "remoting/host/server_log_entry_host.h"
#include "base/strings/stringize_macros.h"
#include "remoting/host/host_details.h"
#include "remoting/signaling/server_log_entry.h"
namespace remoting {
namespace {
const char kValueEventNameSessionState[] = …;
const char kValueRoleHost[] = …;
const char kKeySessionState[] = …;
const char kValueSessionStateConnected[] = …;
const char kValueSessionStateClosed[] = …;
const char kKeyOsName[] = …;
const char kKeyOsVersion[] = …;
const char kKeyHostVersion[] = …;
const char kKeyConnectionType[] = …;
const char* GetValueSessionState(bool connected) { … }
}
std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
bool connected) { … }
void AddHostFieldsToLogEntry(ServerLogEntry* entry) { … }
void AddConnectionTypeToLogEntry(ServerLogEntry* entry,
protocol::TransportRoute::RouteType type) { … }
}