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

Unified Diff: sync/notifier/sync_invalidation_listener.cc

Issue 116533006: Control invalidations network channel from TiclInvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/notifier/sync_invalidation_listener.h ('k') | sync/notifier/sync_invalidation_listener_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/sync_invalidation_listener.cc
diff --git a/sync/notifier/sync_invalidation_listener.cc b/sync/notifier/sync_invalidation_listener.cc
index 9adb897bd1b570caad130f353bf3ae7837bdea67..fce7d5cbfdd68529a5f9e978ca3ed7d936352f90 100644
--- a/sync/notifier/sync_invalidation_listener.cc
+++ b/sync/notifier/sync_invalidation_listener.cc
@@ -30,20 +30,20 @@ namespace syncer {
SyncInvalidationListener::Delegate::~Delegate() {}
SyncInvalidationListener::SyncInvalidationListener(
- scoped_ptr<notifier::PushClient> push_client)
- : push_client_channel_(push_client.Pass()),
- sync_system_resources_(&push_client_channel_, this),
+ scoped_ptr<SyncNetworkChannel> network_channel)
+ : sync_network_channel_(network_channel.Pass()),
+ sync_system_resources_(sync_network_channel_.get(), this),
delegate_(NULL),
ticl_state_(DEFAULT_INVALIDATION_ERROR),
push_client_state_(DEFAULT_INVALIDATION_ERROR),
weak_ptr_factory_(this) {
DCHECK(CalledOnValidThread());
- push_client_channel_.AddObserver(this);
+ sync_network_channel_->AddObserver(this);
}
SyncInvalidationListener::~SyncInvalidationListener() {
DCHECK(CalledOnValidThread());
- push_client_channel_.RemoveObserver(this);
+ sync_network_channel_->RemoveObserver(this);
Stop();
DCHECK(!delegate_);
}
@@ -94,7 +94,7 @@ void SyncInvalidationListener::Start(
void SyncInvalidationListener::UpdateCredentials(
const std::string& email, const std::string& token) {
DCHECK(CalledOnValidThread());
- push_client_channel_.UpdateCredentials(email, token);
+ sync_network_channel_->UpdateCredentials(email, token);
}
void SyncInvalidationListener::UpdateRegisteredIds(const ObjectIdSet& ids) {
« no previous file with comments | « sync/notifier/sync_invalidation_listener.h ('k') | sync/notifier/sync_invalidation_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698