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 "components/invalidation/push_client_channel.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "components/invalidation/notifier_reason_util.h" |
8 #include "google/cacheinvalidation/client_gateway.pb.h" | 9 #include "google/cacheinvalidation/client_gateway.pb.h" |
9 #include "google/cacheinvalidation/types.pb.h" | 10 #include "google/cacheinvalidation/types.pb.h" |
10 #include "jingle/notifier/listener/push_client.h" | 11 #include "jingle/notifier/listener/push_client.h" |
11 | 12 |
12 namespace syncer { | 13 namespace syncer { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 const char kBotJid[] = "tango@bot.talk.google.com"; | 17 const char kBotJid[] = "tango@bot.talk.google.com"; |
17 const char kChannelName[] = "tango_raw"; | 18 const char kChannelName[] = "tango_raw"; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 scoped_ptr<base::DictionaryValue> PushClientChannel::CollectDebugData() const { | 153 scoped_ptr<base::DictionaryValue> PushClientChannel::CollectDebugData() const { |
153 scoped_ptr<base::DictionaryValue> status(new base::DictionaryValue); | 154 scoped_ptr<base::DictionaryValue> status(new base::DictionaryValue); |
154 status->SetString("PushClientChannel.NetworkChannel", "Push Client"); | 155 status->SetString("PushClientChannel.NetworkChannel", "Push Client"); |
155 status->SetInteger("PushClientChannel.SentMessages", sent_messages_count_); | 156 status->SetInteger("PushClientChannel.SentMessages", sent_messages_count_); |
156 status->SetInteger("PushClientChannel.ReceivedMessages", | 157 status->SetInteger("PushClientChannel.ReceivedMessages", |
157 SyncNetworkChannel::GetReceivedMessagesCount()); | 158 SyncNetworkChannel::GetReceivedMessagesCount()); |
158 return status.Pass(); | 159 return status.Pass(); |
159 } | 160 } |
160 | 161 |
161 } // namespace syncer | 162 } // namespace syncer |
OLD | NEW |