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

Unified Diff: remoting/protocol/jingle_messages.h

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.h
diff --git a/remoting/protocol/jingle_messages.h b/remoting/protocol/jingle_messages.h
index 73c148f5040ef4f2bea561bc18dea4b2da8e5d1d..9ecd051329164df18bb9345f4e87c8558e691a78 100644
--- a/remoting/protocol/jingle_messages.h
+++ b/remoting/protocol/jingle_messages.h
@@ -90,6 +90,11 @@ struct JingleMessage {
// message when parsing fails.
bool ParseXml(const buzz::XmlElement* stanza, std::string* error);
+ // Attaches an XmlElement into |attachments|. If |attachment| is empty, this
+ // function returns immediately. Otherwise this function implicitly creates
+ // |attachments| if it's empty.
+ void AttachAttachment(std::unique_ptr<buzz::XmlElement> attachment);
Sergey Ulanov 2016/12/21 01:38:34 AddAttachment()
Hzj_jie 2016/12/22 00:27:10 Done.
+
std::unique_ptr<buzz::XmlElement> ToXml() const;
SignalingAddress from;

Powered by Google App Engine
This is Rietveld 408576698