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

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..019f35bbd9f9e674249c132732bfcb6c3d68f017 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);
+ // Adds an XmlElement into |attachments|. This function implicitly creates
+ // |attachments| if it's empty, and |attachment| should not be an empty
+ // unique_ptr.
+ void AddAttachment(std::unique_ptr<buzz::XmlElement> attachment);
+
std::unique_ptr<buzz::XmlElement> ToXml() const;
SignalingAddress from;

Powered by Google App Engine
This is Rietveld 408576698