| 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/push_client_channel.h" | 5 #include "sync/notifier/push_client_channel.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "google/cacheinvalidation/client_gateway.pb.h" | |
| 9 #include "jingle/notifier/listener/push_client.h" | 8 #include "jingle/notifier/listener/push_client.h" |
| 10 | 9 |
| 11 namespace syncer { | 10 namespace syncer { |
| 12 | 11 |
| 13 namespace { | 12 namespace { |
| 14 | 13 |
| 15 const char kBotJid[] = "tango@bot.talk.google.com"; | 14 const char kBotJid[] = "tango@bot.talk.google.com"; |
| 16 const char kChannelName[] = "tango_raw"; | 15 const char kChannelName[] = "tango_raw"; |
| 17 | 16 |
| 18 } // namespace | 17 } // namespace |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 notifier::NotificationsDisabledReason reason) { | 55 notifier::NotificationsDisabledReason reason) { |
| 57 NotifyStateChange(FromNotifierReason(reason)); | 56 NotifyStateChange(FromNotifierReason(reason)); |
| 58 } | 57 } |
| 59 | 58 |
| 60 void PushClientChannel::OnIncomingNotification( | 59 void PushClientChannel::OnIncomingNotification( |
| 61 const notifier::Notification& notification) { | 60 const notifier::Notification& notification) { |
| 62 DeliverIncomingMessage(notification.data); | 61 DeliverIncomingMessage(notification.data); |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace syncer | 64 } // namespace syncer |
| OLD | NEW |