[go: nahoru, domu]

blob: 3187b44801f047325145acf2eb27f849b76e5122 [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
#define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
#include "remoting/protocol/transport.h"
namespace remoting {
class ServerLogEntry;
// Constructs a log entry for a session state change.
// Currently this is either connection or disconnection.
std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
bool connected);
// Adds fields describing the host to this log entry.
void AddHostFieldsToLogEntry(ServerLogEntry* entry);
// Adds a field describing connection type (direct/stun/relay).
void AddConnectionTypeToLogEntry(ServerLogEntry* entry,
protocol::TransportRoute::RouteType type);
} // namespace remoting
#endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_