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

Side by Side Diff: webrtc/libjingle/xmpp/iqtask.h

Issue 2617443003: Remove webrtc/libjingle/{xmllite,xmpp} (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « webrtc/libjingle/xmpp/hangoutpubsubclient_unittest.cc ('k') | webrtc/libjingle/xmpp/iqtask.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_LIBJINGLE_XMPP_IQTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_IQTASK_H_
13
14 #include <memory>
15 #include <string>
16
17 #include "webrtc/libjingle/xmpp/xmppengine.h"
18 #include "webrtc/libjingle/xmpp/xmpptask.h"
19
20 namespace buzz {
21
22 class IqTask : public XmppTask {
23 public:
24 IqTask(XmppTaskParentInterface* parent,
25 const std::string& verb, const Jid& to,
26 XmlElement* el);
27 virtual ~IqTask() {}
28
29 const XmlElement* stanza() const { return stanza_.get(); }
30
31 sigslot::signal2<IqTask*,
32 const XmlElement*> SignalError;
33
34 protected:
35 virtual void HandleResult(const XmlElement* element) = 0;
36
37 private:
38 virtual int ProcessStart();
39 virtual bool HandleStanza(const XmlElement* stanza);
40 virtual int ProcessResponse();
41 virtual int OnTimeout();
42
43 Jid to_;
44 std::unique_ptr<XmlElement> stanza_;
45 };
46
47 } // namespace buzz
48
49 #endif // WEBRTC_LIBJINGLE_XMPP_IQTASK_H_
OLDNEW
« no previous file with comments | « webrtc/libjingle/xmpp/hangoutpubsubclient_unittest.cc ('k') | webrtc/libjingle/xmpp/iqtask.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698