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 "sync/notifier/p2p_invalidator.h" | 5 #include "components/invalidation/p2p_invalidator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "components/invalidation/notifier_reason_util.h" |
14 #include "jingle/notifier/listener/push_client.h" | 15 #include "jingle/notifier/listener/push_client.h" |
15 #include "sync/notifier/invalidation_handler.h" | 16 #include "sync/notifier/invalidation_handler.h" |
16 #include "sync/notifier/invalidation_util.h" | 17 #include "sync/notifier/invalidation_util.h" |
17 #include "sync/notifier/object_id_invalidation_map.h" | 18 #include "sync/notifier/object_id_invalidation_map.h" |
18 | 19 |
19 namespace syncer { | 20 namespace syncer { |
20 | 21 |
21 const char kSyncP2PNotificationChannel[] = "http://www.google.com/chrome/sync"; | 22 const char kSyncP2PNotificationChannel[] = "http://www.google.com/chrome/sync"; |
22 | 23 |
23 namespace { | 24 namespace { |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 return; | 291 return; |
291 } | 292 } |
292 notifier::Notification notification; | 293 notifier::Notification notification; |
293 notification.channel = kSyncP2PNotificationChannel; | 294 notification.channel = kSyncP2PNotificationChannel; |
294 notification.data = notification_data.ToString(); | 295 notification.data = notification_data.ToString(); |
295 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); | 296 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); |
296 push_client_->SendNotification(notification); | 297 push_client_->SendNotification(notification); |
297 } | 298 } |
298 | 299 |
299 } // namespace syncer | 300 } // namespace syncer |
OLD | NEW |