1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
6 #define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
8 #include "remoting/protocol/transport.h"
14 // Constructs a log entry for a session state change.
15 // Currently this is either connection or disconnection.
16 scoped_ptr
<ServerLogEntry
> MakeLogEntryForSessionStateChange(
19 // Constructs a log entry for a heartbeat.
20 scoped_ptr
<ServerLogEntry
> MakeLogEntryForHeartbeat();
22 // Adds fields describing the host to this log entry.
23 void AddHostFieldsToLogEntry(ServerLogEntry
* entry
);
25 // Adds a field describing connection type (direct/stun/relay).
26 void AddConnectionTypeToLogEntry(ServerLogEntry
* entry
,
27 protocol::TransportRoute::RouteType type
);
29 } // namespace remoting
31 #endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_