blob: 3187b44801f047325145acf2eb27f849b76e5122 [file] [log] [blame]
Avi Drissmand6cdf9b2022-09-15 19:52:531// Copyright 2014 The Chromium Authors
[email protected]b580f422014-05-22 22:21:232// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
6#define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
7
[email protected]b580f422014-05-22 22:21:238#include "remoting/protocol/transport.h"
9
10namespace remoting {
11
12class ServerLogEntry;
13
14// Constructs a log entry for a session state change.
15// Currently this is either connection or disconnection.
dcheng0765c492016-04-06 22:41:5316std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
[email protected]b580f422014-05-22 22:21:2317 bool connected);
18
[email protected]b580f422014-05-22 22:21:2319// Adds fields describing the host to this log entry.
20void AddHostFieldsToLogEntry(ServerLogEntry* entry);
21
22// Adds a field describing connection type (direct/stun/relay).
23void AddConnectionTypeToLogEntry(ServerLogEntry* entry,
24 protocol::TransportRoute::RouteType type);
25
26} // namespace remoting
27
28#endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_