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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void AndroidInvalidatorBridge::UnregisterHandler( | 164 void AndroidInvalidatorBridge::UnregisterHandler( |
165 syncer::InvalidationHandler* handler) { | 165 syncer::InvalidationHandler* handler) { |
166 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 166 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
167 core_->UnregisterHandler(handler); | 167 core_->UnregisterHandler(handler); |
168 } | 168 } |
169 | 169 |
170 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { | 170 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { |
171 return syncer::INVALIDATIONS_ENABLED; | 171 return syncer::INVALIDATIONS_ENABLED; |
172 } | 172 } |
173 | 173 |
174 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { } | |
175 | |
176 void AndroidInvalidatorBridge::UpdateCredentials( | 174 void AndroidInvalidatorBridge::UpdateCredentials( |
177 const std::string& email, const std::string& token) { } | 175 const std::string& email, const std::string& token) { } |
178 | 176 |
179 void AndroidInvalidatorBridge::SendInvalidation( | 177 void AndroidInvalidatorBridge::SendInvalidation( |
180 const syncer::ObjectIdInvalidationMap& invalidation_map) { } | 178 const syncer::ObjectIdInvalidationMap& invalidation_map) { } |
181 | 179 |
182 bool AndroidInvalidatorBridge::IsHandlerRegisteredForTest( | 180 bool AndroidInvalidatorBridge::IsHandlerRegisteredForTest( |
183 syncer::InvalidationHandler* handler) const { | 181 syncer::InvalidationHandler* handler) const { |
184 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 182 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
185 return core_->IsHandlerRegisteredForTest(handler); | 183 return core_->IsHandlerRegisteredForTest(handler); |
(...skipping 27 matching lines...) Expand all Loading... |
213 base::Bind(&Core::EmitInvalidation, | 211 base::Bind(&Core::EmitInvalidation, |
214 core_, | 212 core_, |
215 ModelTypeInvalidationMapToObjectIdInvalidationMap( | 213 ModelTypeInvalidationMapToObjectIdInvalidationMap( |
216 invalidation_map), | 214 invalidation_map), |
217 invalidation_source))) { | 215 invalidation_source))) { |
218 NOTREACHED(); | 216 NOTREACHED(); |
219 } | 217 } |
220 } | 218 } |
221 | 219 |
222 } // namespace browser_sync | 220 } // namespace browser_sync |
OLD | NEW |