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/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/notifier_reason_util.h" | 15 #include "components/invalidation/notifier_reason_util.h" |
| 16 #include "components/invalidation/object_id_invalidation_map.h" |
15 #include "jingle/notifier/listener/push_client.h" | 17 #include "jingle/notifier/listener/push_client.h" |
16 #include "sync/notifier/invalidation_handler.h" | 18 #include "sync/internal_api/public/base/invalidation_util.h" |
17 #include "sync/notifier/invalidation_util.h" | |
18 #include "sync/notifier/object_id_invalidation_map.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"; |
28 const char kNotifyAll[] = "notifyAll"; | 28 const char kNotifyAll[] = "notifyAll"; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 return; | 291 return; |
292 } | 292 } |
293 notifier::Notification notification; | 293 notifier::Notification notification; |
294 notification.channel = kSyncP2PNotificationChannel; | 294 notification.channel = kSyncP2PNotificationChannel; |
295 notification.data = notification_data.ToString(); | 295 notification.data = notification_data.ToString(); |
296 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); | 296 DVLOG(1) << "Sending XMPP notification: " << notification.ToString(); |
297 push_client_->SendNotification(notification); | 297 push_client_->SendNotification(notification); |
298 } | 298 } |
299 | 299 |
300 } // namespace syncer | 300 } // namespace syncer |
OLD | NEW |