OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ |
| 6 #define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ |
| 7 |
| 8 #include "remoting/host/host_exit_codes.h" |
| 9 #include "remoting/host/host_status_sender.h" |
| 10 #include "remoting/protocol/transport.h" |
| 11 |
| 12 namespace remoting { |
| 13 |
| 14 namespace protocol { |
| 15 class ServerLogEntry; |
| 16 } // namespace protocol |
| 17 |
| 18 // Constructs a log entry for a session state change. |
| 19 // Currently this is either connection or disconnection. |
| 20 scoped_ptr<protocol::ServerLogEntry> MakeLogEntryForSessionStateChange( |
| 21 bool connected); |
| 22 |
| 23 // Constructs a log entry for a heartbeat. |
| 24 scoped_ptr<protocol::ServerLogEntry> MakeLogEntryForHeartbeat(); |
| 25 |
| 26 // Constructs a log entry for a host status message. |
| 27 scoped_ptr<protocol::ServerLogEntry> MakeLogEntryForHostStatus( |
| 28 HostStatusSender::HostStatus host_status, HostExitCodes exit_code); |
| 29 |
| 30 // Adds fields describing the host to this log entry. |
| 31 void AddHostFieldsToLogEntry(protocol::ServerLogEntry* entry); |
| 32 |
| 33 // Adds a field describing connection type (direct/stun/relay). |
| 34 void AddConnectionTypeToLogEntry(protocol::ServerLogEntry* entry, |
| 35 protocol::TransportRoute::RouteType type); |
| 36 |
| 37 } // namespace remoting |
| 38 |
| 39 #endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ |
OLD | NEW |