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

Side by Side Diff: webrtc/libjingle/xmpp/discoitemsquerytask.cc

Issue 1935893002: Replace scoped_ptr with unique_ptr in webrtc/libjingle/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/libjingle/xmpp/chatroommoduleimpl.cc ('k') | webrtc/libjingle/xmpp/hangoutpubsubclient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698