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

Side by Side Diff: jingle/notifier/listener/send_ping_task.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "jingle/notifier/listener/send_ping_task.h" 5 #include "jingle/notifier/listener/send_ping_task.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "jingle/notifier/listener/xml_element_util.h" 11 #include "jingle/notifier/listener/xml_element_util.h"
12 #include "third_party/webrtc/libjingle/xmllite/qname.h" 12 #include "third_party/libjingle_xmpp/xmllite/qname.h"
13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 13 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
14 #include "webrtc/libjingle/xmpp/constants.h" 14 #include "third_party/libjingle_xmpp/xmpp/constants.h"
15 #include "webrtc/libjingle/xmpp/jid.h" 15 #include "third_party/libjingle_xmpp/xmpp/jid.h"
16 #include "webrtc/libjingle/xmpp/xmppclient.h" 16 #include "third_party/libjingle_xmpp/xmpp/xmppclient.h"
17 17
18 namespace notifier { 18 namespace notifier {
19 19
20 SendPingTask::Delegate::~Delegate() { 20 SendPingTask::Delegate::~Delegate() {
21 } 21 }
22 22
23 SendPingTask::SendPingTask(buzz::XmppTaskParentInterface* parent, 23 SendPingTask::SendPingTask(buzz::XmppTaskParentInterface* parent,
24 Delegate* delegate) 24 Delegate* delegate)
25 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), delegate_(delegate) { 25 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), delegate_(delegate) {
26 } 26 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 buzz::XmlElement* SendPingTask::MakePingStanza(const std::string& task_id) { 72 buzz::XmlElement* SendPingTask::MakePingStanza(const std::string& task_id) {
73 buzz::XmlElement* stanza = MakeIq(buzz::STR_GET, 73 buzz::XmlElement* stanza = MakeIq(buzz::STR_GET,
74 buzz::Jid(buzz::STR_EMPTY), 74 buzz::Jid(buzz::STR_EMPTY),
75 task_id); 75 task_id);
76 stanza->AddElement(new buzz::XmlElement(buzz::QN_PING)); 76 stanza->AddElement(new buzz::XmlElement(buzz::QN_PING));
77 return stanza; 77 return stanza;
78 } 78 }
79 79
80 } // namespace notifier 80 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/listener/send_ping_task.h ('k') | jingle/notifier/listener/send_ping_task_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698