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