Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc

Issue 2885005: Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: rebased Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/DEPS ('k') | chrome/browser/sync/notifier/server_notifier_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698