Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: components/invalidation/push_client_channel.cc

Issue 294123004: Move some sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/invalidation/push_client_channel.h ('k') | components/invalidation/push_client_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698