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