OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/sync/notifier/cache_invalidation_packet_handler.h" | 5 #include "chrome/browser/sync/notifier/cache_invalidation_packet_handler.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/common/net/notifier/listener/xml_element_util.h" | |
11 #include "google/cacheinvalidation/invalidation-client.h" | 10 #include "google/cacheinvalidation/invalidation-client.h" |
| 11 #include "jingle/notifier/listener/xml_element_util.h" |
12 #include "talk/xmpp/constants.h" | 12 #include "talk/xmpp/constants.h" |
13 #include "talk/xmpp/jid.h" | 13 #include "talk/xmpp/jid.h" |
14 #include "talk/xmpp/xmppclient.h" | 14 #include "talk/xmpp/xmppclient.h" |
15 #include "talk/xmpp/xmpptask.h" | 15 #include "talk/xmpp/xmpptask.h" |
16 | 16 |
17 namespace sync_notifier { | 17 namespace sync_notifier { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kBotJid[] = "tango@bot.talk.google.com"; | 21 const char kBotJid[] = "tango@bot.talk.google.com"; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 std::string decoded_message; | 234 std::string decoded_message; |
235 if (!base::Base64Decode(packet, &decoded_message)) { | 235 if (!base::Base64Decode(packet, &decoded_message)) { |
236 LOG(ERROR) << "Could not base64-decode received message: " | 236 LOG(ERROR) << "Could not base64-decode received message: " |
237 << packet; | 237 << packet; |
238 return; | 238 return; |
239 } | 239 } |
240 network_endpoint->HandleInboundMessage(decoded_message); | 240 network_endpoint->HandleInboundMessage(decoded_message); |
241 } | 241 } |
242 | 242 |
243 } // namespace sync_notifier | 243 } // namespace sync_notifier |
OLD | NEW |