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

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

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 5 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/invalidation/impl/push_client_channel.h ('k') | components/invalidation/impl/push_client_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698