Index: remoting/protocol/jingle_messages.h |
diff --git a/remoting/protocol/jingle_messages.h b/remoting/protocol/jingle_messages.h |
index 32b78c177fc76b072702d92490911dbc5248addc..47f9afc9431363bd7422d8a724255e30080730e6 100644 |
--- a/remoting/protocol/jingle_messages.h |
+++ b/remoting/protocol/jingle_messages.h |
@@ -36,6 +36,25 @@ |
INCOMPATIBLE_PARAMETERS, |
}; |
+ struct NamedCandidate { |
+ NamedCandidate() = default; |
+ NamedCandidate(const std::string& name, |
+ const cricket::Candidate& candidate); |
+ |
+ std::string name; |
+ cricket::Candidate candidate; |
+ }; |
+ |
+ struct IceCredentials { |
+ IceCredentials() = default; |
+ IceCredentials(std::string channel, |
+ std::string ufrag, |
+ std::string password); |
+ |
+ std::string channel; |
+ std::string ufrag; |
+ std::string password; |
+ }; |
JingleMessage(); |
JingleMessage(const std::string& to_value, |
@@ -62,7 +81,8 @@ |
scoped_ptr<ContentDescription> description; |
- scoped_ptr<buzz::XmlElement> transport_info; |
+ std::list<IceCredentials> ice_credentials; |
+ std::list<NamedCandidate> candidates; |
// Content of session-info messages. |
scoped_ptr<buzz::XmlElement> info; |
@@ -103,38 +123,6 @@ |
std::string text; |
}; |
-struct IceTransportInfo { |
- IceTransportInfo(); |
- ~IceTransportInfo(); |
- struct NamedCandidate { |
- NamedCandidate() = default; |
- NamedCandidate(const std::string& name, |
- const cricket::Candidate& candidate); |
- |
- std::string name; |
- cricket::Candidate candidate; |
- }; |
- |
- struct IceCredentials { |
- IceCredentials() = default; |
- IceCredentials(std::string channel, |
- std::string ufrag, |
- std::string password); |
- |
- std::string channel; |
- std::string ufrag; |
- std::string password; |
- }; |
- |
- // Caller keeps ownership of |stanza|. |error| is set to debug error |
- // message when parsing fails. |
- bool ParseXml(const buzz::XmlElement* stanza); |
- scoped_ptr<buzz::XmlElement> ToXml() const; |
- |
- std::list<IceCredentials> ice_credentials; |
- std::list<NamedCandidate> candidates; |
-}; |
- |
} // protocol |
} // remoting |