Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / host / server_log_entry_host.h
blob1fef4c1108c3ea06ac992a3f7cfe7b5fe654f855
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"
10 namespace remoting {
12 class ServerLogEntry;
14 // Constructs a log entry for a session state change.
15 // Currently this is either connection or disconnection.
16 scoped_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
17 bool connected);
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_