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

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

Issue 17610004: Revert 208315 "Make use of InvalidationService" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | 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/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
230 void NonBlockingInvalidator::OnInvalidatorStateChange(InvalidatorState state) { 237 void NonBlockingInvalidator::OnInvalidatorStateChange(InvalidatorState state) {
231 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 238 DCHECK(parent_task_runner_->BelongsToCurrentThread());
232 registrar_.UpdateInvalidatorState(state); 239 registrar_.UpdateInvalidatorState(state);
233 } 240 }
234 241
235 void NonBlockingInvalidator::OnIncomingInvalidation( 242 void NonBlockingInvalidator::OnIncomingInvalidation(
236 const ObjectIdInvalidationMap& invalidation_map) { 243 const ObjectIdInvalidationMap& invalidation_map) {
237 DCHECK(parent_task_runner_->BelongsToCurrentThread()); 244 DCHECK(parent_task_runner_->BelongsToCurrentThread());
238 registrar_.DispatchInvalidationsToHandlers(invalidation_map); 245 registrar_.DispatchInvalidationsToHandlers(invalidation_map);
239 } 246 }
240 247
241 } // namespace syncer 248 } // namespace syncer
OLDNEW
« no previous file with comments | « trunk/src/sync/notifier/non_blocking_invalidator.h ('k') | trunk/src/sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698