diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 16:44:12 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-22 16:44:12 +0000 |
commit | bd7b911d9b6bba55f90833fe93fe2c2f434b8551 (patch) | |
tree | c565e04a88b33703ec3682b0bbf6577c3421f49f /remoting/host/heartbeat_sender.cc | |
parent | 49a1f3fdb7215a9e7ab25a54f4e33ff13fc04417 (diff) | |
download | chromium_src-bd7b911d9b6bba55f90833fe93fe2c2f434b8551.zip chromium_src-bd7b911d9b6bba55f90833fe93fe2c2f434b8551.tar.gz chromium_src-bd7b911d9b6bba55f90833fe93fe2c2f434b8551.tar.bz2 |
[Chromoting] Add platform data to heartbeats.
BUG=126491
Review URL: https://chromiumcodereview.appspot.com/10409017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/heartbeat_sender.cc')
-rw-r--r-- | remoting/host/heartbeat_sender.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc index 8420acf..c188203 100644 --- a/remoting/host/heartbeat_sender.cc +++ b/remoting/host/heartbeat_sender.cc @@ -14,6 +14,7 @@ #include "base/time.h" #include "remoting/base/constants.h" #include "remoting/host/constants.h" +#include "remoting/host/server_log_entry.h" #include "remoting/jingle_glue/iq_sender.h" #include "remoting/jingle_glue/jingle_thread.h" #include "remoting/jingle_glue/signal_strategy.h" @@ -229,12 +230,19 @@ void HeartbeatSender::SetSequenceId(int sequence_id) { } scoped_ptr<XmlElement> HeartbeatSender::CreateHeartbeatMessage() { + // Create heartbeat stanza. scoped_ptr<XmlElement> query(new XmlElement( QName(kChromotingXmlNamespace, kHeartbeatQueryTag))); query->AddAttr(QName(kChromotingXmlNamespace, kHostIdAttr), host_id_); query->AddAttr(QName(kChromotingXmlNamespace, kSequenceIdAttr), base::IntToString(sequence_id_)); query->AddElement(CreateSignature().release()); + // Append log message (which isn't signed). + scoped_ptr<XmlElement> log(ServerLogEntry::MakeStanza()); + scoped_ptr<ServerLogEntry> log_entry(ServerLogEntry::MakeForHeartbeat()); + log_entry->AddHostFields(); + log->AddElement(log_entry->ToStanza().release()); + query->AddElement(log.release()); return query.Pass(); } |