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/push_notifications_subscribe_task.h" | 5 #include "jingle/notifier/listener/push_notifications_subscribe_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/notification_constants.h" | 11 #include "jingle/notifier/listener/notification_constants.h" |
12 #include "jingle/notifier/listener/xml_element_util.h" | 12 #include "jingle/notifier/listener/xml_element_util.h" |
13 #include "third_party/webrtc/libjingle/xmllite/qname.h" | 13 #include "third_party/libjingle_xmpp/xmllite/qname.h" |
14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
| 15 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
| 16 #include "third_party/libjingle_xmpp/xmpp/xmppclient.h" |
| 17 #include "third_party/libjingle_xmpp/xmpp/xmppengine.h" |
15 #include "webrtc/base/task.h" | 18 #include "webrtc/base/task.h" |
16 #include "webrtc/libjingle/xmpp/constants.h" | |
17 #include "webrtc/libjingle/xmpp/xmppclient.h" | |
18 #include "webrtc/libjingle/xmpp/xmppengine.h" | |
19 | 19 |
20 namespace notifier { | 20 namespace notifier { |
21 | 21 |
22 PushNotificationsSubscribeTask::PushNotificationsSubscribeTask( | 22 PushNotificationsSubscribeTask::PushNotificationsSubscribeTask( |
23 buzz::XmppTaskParentInterface* parent, | 23 buzz::XmppTaskParentInterface* parent, |
24 const SubscriptionList& subscriptions, | 24 const SubscriptionList& subscriptions, |
25 Delegate* delegate) | 25 Delegate* delegate) |
26 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), | 26 : XmppTask(parent, buzz::XmppEngine::HL_SINGLE), |
27 subscriptions_(subscriptions), delegate_(delegate) { | 27 subscriptions_(subscriptions), delegate_(delegate) { |
28 } | 28 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 buzz::QName(kPushNotificationsNamespace, "item")); | 99 buzz::QName(kPushNotificationsNamespace, "item")); |
100 item->AddAttr(buzz::QName(buzz::STR_EMPTY, "channel"), | 100 item->AddAttr(buzz::QName(buzz::STR_EMPTY, "channel"), |
101 iter->channel.c_str()); | 101 iter->channel.c_str()); |
102 item->AddAttr(buzz::QN_FROM, iter->from.c_str()); | 102 item->AddAttr(buzz::QN_FROM, iter->from.c_str()); |
103 subscribe->AddElement(item); | 103 subscribe->AddElement(item); |
104 } | 104 } |
105 return iq; | 105 return iq; |
106 } | 106 } |
107 | 107 |
108 } // namespace notifier | 108 } // namespace notifier |
OLD | NEW |