| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "webrtc/libjingle/xmpp/mucroomconfigtask.h" | 14 #include "webrtc/libjingle/xmpp/mucroomconfigtask.h" |
| 15 | 15 |
| 16 #include "webrtc/libjingle/xmpp/constants.h" | 16 #include "webrtc/libjingle/xmpp/constants.h" |
| 17 #include "webrtc/base/scoped_ptr.h" | |
| 18 | 17 |
| 19 namespace buzz { | 18 namespace buzz { |
| 20 | 19 |
| 21 MucRoomConfigTask::MucRoomConfigTask( | 20 MucRoomConfigTask::MucRoomConfigTask( |
| 22 XmppTaskParentInterface* parent, | 21 XmppTaskParentInterface* parent, |
| 23 const Jid& room_jid, | 22 const Jid& room_jid, |
| 24 const std::string& room_name, | 23 const std::string& room_name, |
| 25 const std::vector<std::string>& room_features) | 24 const std::vector<std::string>& room_features) |
| 26 : IqTask(parent, STR_SET, room_jid, | 25 : IqTask(parent, STR_SET, room_jid, |
| 27 MakeRequest(room_name, room_features)), | 26 MakeRequest(room_name, room_features)), |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 x_form->AddElement(features_field); | 64 x_form->AddElement(features_field); |
| 66 owner_query->AddElement(x_form); | 65 owner_query->AddElement(x_form); |
| 67 return owner_query; | 66 return owner_query; |
| 68 } | 67 } |
| 69 | 68 |
| 70 void MucRoomConfigTask::HandleResult(const XmlElement* element) { | 69 void MucRoomConfigTask::HandleResult(const XmlElement* element) { |
| 71 SignalResult(this); | 70 SignalResult(this); |
| 72 } | 71 } |
| 73 | 72 |
| 74 } // namespace buzz | 73 } // namespace buzz |
| OLD | NEW |