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

Side by Side Diff: third_party/libjingle_xmpp/xmpp/receivetask.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Fix GN and sort includes Created 3 years, 12 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
(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 #include "third_party/libjingle_xmpp/xmpp/constants.h"
12 #include "third_party/libjingle_xmpp/xmpp/receivetask.h"
13
14 namespace buzz {
15
16 bool ReceiveTask::HandleStanza(const XmlElement* stanza) {
17 if (WantsStanza(stanza)) {
18 QueueStanza(stanza);
19 return true;
20 }
21
22 return false;
23 }
24
25 int ReceiveTask::ProcessStart() {
26 const XmlElement* stanza = NextStanza();
27 if (stanza == NULL)
28 return STATE_BLOCKED;
29
30 ReceiveStanza(stanza);
31 return STATE_START;
32 }
33
34 } // namespace buzz
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698