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

Unified Diff: remoting/protocol/jingle_messages.cc

Issue 2586403003: [Chromoting] Add SessionPlugin in JingleSession (Closed)
Patch Set: Resolve review comments Created 4 years 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/protocol/jingle_messages.cc
diff --git a/remoting/protocol/jingle_messages.cc b/remoting/protocol/jingle_messages.cc
index 480a2c252d6aba242575d0b21217da0b67dc63c2..8c28fdf06f29175cced0c0078eb12e1927e9452e 100644
--- a/remoting/protocol/jingle_messages.cc
+++ b/remoting/protocol/jingle_messages.cc
@@ -9,6 +9,7 @@
#include "remoting/base/constants.h"
#include "remoting/protocol/content_description.h"
#include "remoting/protocol/name_value_map.h"
+#include "remoting/protocol/session_plugin.h"
#include "remoting/signaling/jid_util.h"
#include "remoting/signaling/remoting_bot.h"
#include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
@@ -511,6 +512,15 @@ std::unique_ptr<buzz::XmlElement> JingleMessage::ToXml() const {
return root;
}
+void JingleMessage::AddAttachment(std::unique_ptr<XmlElement> attachment) {
+ DCHECK(attachment);
+ if (!attachments) {
+ attachments.reset(new XmlElement(
+ QName(kChromotingXmlNamespace, "attachments")));
+ }
+ attachments->AddElement(attachment.release());
+}
+
JingleMessageReply::JingleMessageReply()
: type(REPLY_RESULT),
error_type(NONE) {

Powered by Google App Engine
This is Rietveld 408576698