| 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 "chrome/browser/sync/glue/android_invalidator_bridge.h" | 5 #include "chrome/browser/sync/glue/android_invalidator_bridge.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 158 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 159 core_->UpdateRegisteredIds(handler, ids); | 159 core_->UpdateRegisteredIds(handler, ids); |
| 160 } | 160 } |
| 161 | 161 |
| 162 void AndroidInvalidatorBridge::UnregisterHandler( | 162 void AndroidInvalidatorBridge::UnregisterHandler( |
| 163 syncer::InvalidationHandler* handler) { | 163 syncer::InvalidationHandler* handler) { |
| 164 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 164 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 165 core_->UnregisterHandler(handler); | 165 core_->UnregisterHandler(handler); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void AndroidInvalidatorBridge::Acknowledge( |
| 169 const invalidation::ObjectId& id, const syncer::AckHandle& ack_handle) { |
| 170 // Do nothing. |
| 171 } |
| 172 |
| 168 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { | 173 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { |
| 169 return syncer::INVALIDATIONS_ENABLED; | 174 return syncer::INVALIDATIONS_ENABLED; |
| 170 } | 175 } |
| 171 | 176 |
| 172 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { } | 177 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { } |
| 173 | 178 |
| 174 void AndroidInvalidatorBridge::UpdateCredentials( | 179 void AndroidInvalidatorBridge::UpdateCredentials( |
| 175 const std::string& email, const std::string& token) { } | 180 const std::string& email, const std::string& token) { } |
| 176 | 181 |
| 177 void AndroidInvalidatorBridge::SendInvalidation( | 182 void AndroidInvalidatorBridge::SendInvalidation( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 207 FROM_HERE, | 212 FROM_HERE, |
| 208 base::Bind(&Core::EmitInvalidation, | 213 base::Bind(&Core::EmitInvalidation, |
| 209 core_, | 214 core_, |
| 210 ModelTypeInvalidationMapToObjectIdInvalidationMap( | 215 ModelTypeInvalidationMapToObjectIdInvalidationMap( |
| 211 invalidation_map)))) { | 216 invalidation_map)))) { |
| 212 NOTREACHED(); | 217 NOTREACHED(); |
| 213 } | 218 } |
| 214 } | 219 } |
| 215 | 220 |
| 216 } // namespace browser_sync | 221 } // namespace browser_sync |
| OLD | NEW |