OLD | NEW |
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 Loading... |
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 |
OLD | NEW |