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

Unified Diff: remoting/host/server_log_entry.h

Issue 18075003: Host offline status reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/server_log_entry.h
diff --git a/remoting/host/server_log_entry.h b/remoting/host/server_log_entry.h
index 3e8e68ba229c32560b145da9dbbc3fe82d7ae213..9d163d1492ad8dee1a09e369c242b2bef3823464 100644
--- a/remoting/host/server_log_entry.h
+++ b/remoting/host/server_log_entry.h
@@ -37,6 +37,9 @@ class ServerLogEntry {
// Constructs a log entry for a heartbeat.
static scoped_ptr<ServerLogEntry> MakeForHeartbeat();
+ // Constructs a log entry for a host status message.
+ static scoped_ptr<ServerLogEntry> MakeForHostStatus();
+
~ServerLogEntry();
// Adds fields describing the host to this log entry.
@@ -48,6 +51,8 @@ class ServerLogEntry {
// Adds a field describing connection type (direct/stun/relay).
void AddConnectionTypeField(protocol::TransportRoute::RouteType type);
+ void AddCustomField(const std::string& name, const std::string& value);
+
// Converts this object to an XML stanza.
scoped_ptr<buzz::XmlElement> ToStanza() const;

Powered by Google App Engine
This is Rietveld 408576698