| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/net/notifier/listener/subscribe_task.h" | 5 #include "jingle/notifier/listener/subscribe_task.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/common/net/notifier/listener/notification_constants.h" | 10 #include "jingle/notifier/listener/notification_constants.h" |
| 11 #include "chrome/common/net/notifier/listener/xml_element_util.h" | 11 #include "jingle/notifier/listener/xml_element_util.h" |
| 12 #include "talk/base/task.h" | 12 #include "talk/base/task.h" |
| 13 #include "talk/xmllite/qname.h" | 13 #include "talk/xmllite/qname.h" |
| 14 #include "talk/xmllite/xmlelement.h" | 14 #include "talk/xmllite/xmlelement.h" |
| 15 #include "talk/xmpp/xmppclient.h" | 15 #include "talk/xmpp/xmppclient.h" |
| 16 #include "talk/xmpp/constants.h" | 16 #include "talk/xmpp/constants.h" |
| 17 #include "talk/xmpp/xmppengine.h" | 17 #include "talk/xmpp/xmppengine.h" |
| 18 | 18 |
| 19 namespace notifier { | 19 namespace notifier { |
| 20 | 20 |
| 21 SubscribeTask::SubscribeTask( | 21 SubscribeTask::SubscribeTask( |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 get_all->AddElement( | 100 get_all->AddElement( |
| 101 MakeStringXmlElement("SubscribedServiceUrl", iter->c_str())); | 101 MakeStringXmlElement("SubscribedServiceUrl", iter->c_str())); |
| 102 } | 102 } |
| 103 if (!subscribed_services_list.empty()) { | 103 if (!subscribed_services_list.empty()) { |
| 104 get_all->AddElement(MakeBoolXmlElement("FilterNonSubscribed", true)); | 104 get_all->AddElement(MakeBoolXmlElement("FilterNonSubscribed", true)); |
| 105 } | 105 } |
| 106 return iq; | 106 return iq; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace notifier | 109 } // namespace notifier |
| OLD | NEW |