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/listen_task.h" | 5 #include "jingle/notifier/listener/listen_task.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/common/net/notifier/listener/notification_constants.h" | 8 #include "jingle/notifier/listener/notification_constants.h" |
9 #include "chrome/common/net/notifier/listener/xml_element_util.h" | 9 #include "jingle/notifier/listener/xml_element_util.h" |
10 #include "talk/base/task.h" | 10 #include "talk/base/task.h" |
11 #include "talk/xmllite/qname.h" | 11 #include "talk/xmllite/qname.h" |
12 #include "talk/xmllite/xmlelement.h" | 12 #include "talk/xmllite/xmlelement.h" |
13 #include "talk/xmpp/xmppclient.h" | 13 #include "talk/xmpp/xmppclient.h" |
14 #include "talk/xmpp/constants.h" | 14 #include "talk/xmpp/constants.h" |
15 #include "talk/xmpp/xmppengine.h" | 15 #include "talk/xmpp/xmppengine.h" |
16 | 16 |
17 namespace notifier { | 17 namespace notifier { |
18 | 18 |
19 ListenTask::ListenTask(Task* parent) | 19 ListenTask::ListenTask(Task* parent) |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // <Timestamp long="#" xmlns=""/> | 135 // <Timestamp long="#" xmlns=""/> |
136 // </not:getAll> | 136 // </not:getAll> |
137 // </cli:iq> | 137 // </cli:iq> |
138 return | 138 return |
139 (MatchRequestIq(stanza, buzz::STR_SET, kQnNotifierGetAll) && | 139 (MatchRequestIq(stanza, buzz::STR_SET, kQnNotifierGetAll) && |
140 (stanza->Attr(buzz::QN_TO) == GetClient()->jid().Str()) && | 140 (stanza->Attr(buzz::QN_TO) == GetClient()->jid().Str()) && |
141 (stanza->Attr(buzz::QN_FROM) == GetClient()->jid().BareJid().Str())); | 141 (stanza->Attr(buzz::QN_FROM) == GetClient()->jid().BareJid().Str())); |
142 } | 142 } |
143 | 143 |
144 } // namespace notifier | 144 } // namespace notifier |
OLD | NEW |