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