OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/invalidation/p2p_invalidator.h" | 5 #include "components/invalidation/impl/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/invalidation_handler.h" | 14 #include "components/invalidation/impl/notifier_reason_util.h" |
15 #include "components/invalidation/invalidation_util.h" | 15 #include "components/invalidation/public/invalidation_handler.h" |
16 #include "components/invalidation/notifier_reason_util.h" | 16 #include "components/invalidation/public/invalidation_util.h" |
17 #include "components/invalidation/object_id_invalidation_map.h" | 17 #include "components/invalidation/public/object_id_invalidation_map.h" |
18 #include "jingle/notifier/listener/push_client.h" | 18 #include "jingle/notifier/listener/push_client.h" |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 | 21 |
22 const char kSyncP2PNotificationChannel[] = "http://www.google.com/chrome/sync"; | 22 const char kSyncP2PNotificationChannel[] = "http://www.google.com/chrome/sync"; |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kNotifySelf[] = "notifySelf"; | 26 const char kNotifySelf[] = "notifySelf"; |
27 const char kNotifyOthers[] = "notifyOthers"; | 27 const char kNotifyOthers[] = "notifyOthers"; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return; | 292 return; |
293 } | 293 } |
294 notifier::Notification notification; | 294 notifier::Notification notification; |
295 notification.channel = kSyncP2PNotificationChannel; | 295 notification.channel = kSyncP2PNotificationChannel; |
296 notification.data = notification_data.ToString(); | 296 notification.data = notification_data.ToString(); |
297 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); | 297 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); |
298 push_client_->SendNotification(notification); | 298 push_client_->SendNotification(notification); |
299 } | 299 } |
300 | 300 |
301 } // namespace syncer | 301 } // namespace syncer |
OLD | NEW |