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

Side by Side Diff: chrome/browser/sync/glue/android_invalidator_bridge.cc

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 "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
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 }
akalin 2013/02/15 22:32:12 this is on purpose, right? I suggest having a '//
dcheng 2013/02/22 02:51:30 Done.
171
168 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const { 172 syncer::InvalidatorState AndroidInvalidatorBridge::GetInvalidatorState() const {
169 return syncer::INVALIDATIONS_ENABLED; 173 return syncer::INVALIDATIONS_ENABLED;
170 } 174 }
171 175
172 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { } 176 void AndroidInvalidatorBridge::SetUniqueId(const std::string& unique_id) { }
173 177
174 void AndroidInvalidatorBridge::UpdateCredentials( 178 void AndroidInvalidatorBridge::UpdateCredentials(
175 const std::string& email, const std::string& token) { } 179 const std::string& email, const std::string& token) { }
176 180
177 void AndroidInvalidatorBridge::SendInvalidation( 181 void AndroidInvalidatorBridge::SendInvalidation(
(...skipping 29 matching lines...) Expand all
207 FROM_HERE, 211 FROM_HERE,
208 base::Bind(&Core::EmitInvalidation, 212 base::Bind(&Core::EmitInvalidation,
209 core_, 213 core_,
210 ModelTypeInvalidationMapToObjectIdInvalidationMap( 214 ModelTypeInvalidationMapToObjectIdInvalidationMap(
211 invalidation_map)))) { 215 invalidation_map)))) {
212 NOTREACHED(); 216 NOTREACHED();
213 } 217 }
214 } 218 }
215 219
216 } // namespace browser_sync 220 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698