| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/libjingle/xmpp/constants.h" | 11 #include "webrtc/libjingle/xmpp/constants.h" |
| 12 #include "webrtc/libjingle/xmpp/discoitemsquerytask.h" | 12 #include "webrtc/libjingle/xmpp/discoitemsquerytask.h" |
| 13 #include "webrtc/libjingle/xmpp/xmpptask.h" | 13 #include "webrtc/libjingle/xmpp/xmpptask.h" |
| 14 #include "webrtc/base/scoped_ptr.h" | |
| 15 | 14 |
| 16 namespace buzz { | 15 namespace buzz { |
| 17 | 16 |
| 18 DiscoItemsQueryTask::DiscoItemsQueryTask(XmppTaskParentInterface* parent, | 17 DiscoItemsQueryTask::DiscoItemsQueryTask(XmppTaskParentInterface* parent, |
| 19 const Jid& to, | 18 const Jid& to, |
| 20 const std::string& node) | 19 const std::string& node) |
| 21 : IqTask(parent, STR_GET, to, MakeRequest(node)) { | 20 : IqTask(parent, STR_GET, to, MakeRequest(node)) { |
| 22 } | 21 } |
| 23 | 22 |
| 24 XmlElement* DiscoItemsQueryTask::MakeRequest(const std::string& node) { | 23 XmlElement* DiscoItemsQueryTask::MakeRequest(const std::string& node) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 return false; | 52 return false; |
| 54 } | 53 } |
| 55 | 54 |
| 56 item->jid = element->Attr(QN_JID); | 55 item->jid = element->Attr(QN_JID); |
| 57 item->name = element->Attr(QN_NAME); | 56 item->name = element->Attr(QN_NAME); |
| 58 item->node = element->Attr(QN_NODE); | 57 item->node = element->Attr(QN_NODE); |
| 59 return true; | 58 return true; |
| 60 } | 59 } |
| 61 | 60 |
| 62 } // namespace buzz | 61 } // namespace buzz |
| OLD | NEW |