| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |