| Index: remoting/protocol/jingle_messages.cc
|
| diff --git a/remoting/protocol/jingle_messages.cc b/remoting/protocol/jingle_messages.cc
|
| index 8fe749d603634aa4cac6953f3dd0a7871898f0bd..a1b87ff6e25c9348705b8d58132ab14b9c24fb82 100644
|
| --- a/remoting/protocol/jingle_messages.cc
|
| +++ b/remoting/protocol/jingle_messages.cc
|
| @@ -141,6 +141,11 @@ bool JingleMessage::IsJingleMessage(const buzz::XmlElement* stanza) {
|
| stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL;
|
| }
|
|
|
| +// static
|
| +std::string JingleMessage::GetActionName(ActionType action) {
|
| + return ValueToName(kActionTypes, arraysize(kActionTypes), action);
|
| +}
|
| +
|
| JingleMessage::JingleMessage()
|
| : action(UNKNOWN_ACTION),
|
| reason(UNKNOWN_REASON) {
|
| @@ -268,7 +273,7 @@ bool JingleMessage::ParseXml(const buzz::XmlElement* stanza,
|
| return true;
|
| }
|
|
|
| -scoped_ptr<buzz::XmlElement> JingleMessage::ToXml() {
|
| +scoped_ptr<buzz::XmlElement> JingleMessage::ToXml() const {
|
| scoped_ptr<XmlElement> root(
|
| new XmlElement(QName("jabber:client", "iq"), true));
|
|
|
|
|