Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: remoting/host/server_log_entry_host.h

Issue 282063005: Pull out common code from client and host versions of ServerLogEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698