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

Side by Side Diff: sync/notifier/non_blocking_invalidator.cc

Issue 15580002: Make use of InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 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
« no previous file with comments | « sync/notifier/non_blocking_invalidator.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/non_blocking_invalidator.h" 5 #include "sync/notifier/non_blocking_invalidator.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 const std::string& token) { 220 const std::string& token) {
221 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 221 DCHECK(parent_task_runner_->BelongsToCurrentThread());
222 if (!network_task_runner_->PostTask( 222 if (!network_task_runner_->PostTask(
223 FROM_HERE, 223 FROM_HERE,
224 base::Bind(&NonBlockingInvalidator::Core::UpdateCredentials, 224 base::Bind(&NonBlockingInvalidator::Core::UpdateCredentials,
225 core_.get(), email, token))) { 225 core_.get(), email, token))) {
226 NOTREACHED(); 226 NOTREACHED();
227 } 227 }
228 } 228 }
229 229
230 void NonBlockingInvalidator::SendInvalidation(
231 const ObjectIdInvalidationMap& invalidation_map) {
232 DCHECK(parent_task_runner_->BelongsToCurrentThread());
233 // InvalidationNotifier doesn't implement SendInvalidation(), so no
234 // need to forward on the call.
235 }
236
237 void NonBlockingInvalidator::OnInvalidatorStateChange(InvalidatorState state) { 230 void NonBlockingInvalidator::OnInvalidatorStateChange(InvalidatorState state) {
238 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 231 DCHECK(parent_task_runner_->BelongsToCurrentThread());
239 registrar_.UpdateInvalidatorState(state); 232 registrar_.UpdateInvalidatorState(state);
240 } 233 }
241 234
242 void NonBlockingInvalidator::OnIncomingInvalidation( 235 void NonBlockingInvalidator::OnIncomingInvalidation(
243 const ObjectIdInvalidationMap& invalidation_map) { 236 const ObjectIdInvalidationMap& invalidation_map) {
244 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 237 DCHECK(parent_task_runner_->BelongsToCurrentThread());
245 registrar_.DispatchInvalidationsToHandlers(invalidation_map); 238 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
246 } 239 }
247 240
248 } // namespace syncer 241 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/non_blocking_invalidator.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698