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

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

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 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_proxy.h" 5 #include "chrome/browser/sync/glue/android_invalidator_bridge_proxy.h"
6 6
7 #include "chrome/browser/sync/glue/android_invalidator_bridge.h" 7 #include "chrome/browser/sync/glue/android_invalidator_bridge.h"
8 8
9 using std::string; 9 using std::string;
10 using syncer::InvalidatorState; 10 using syncer::InvalidatorState;
(...skipping 22 matching lines...) Expand all
33 33
34 InvalidatorState AndroidInvalidatorBridgeProxy::GetInvalidatorState() const { 34 InvalidatorState AndroidInvalidatorBridgeProxy::GetInvalidatorState() const {
35 return bridge_->GetInvalidatorState(); 35 return bridge_->GetInvalidatorState();
36 } 36 }
37 37
38 void AndroidInvalidatorBridgeProxy::UnregisterHandler( 38 void AndroidInvalidatorBridgeProxy::UnregisterHandler(
39 syncer::InvalidationHandler* handler) { 39 syncer::InvalidationHandler* handler) {
40 bridge_->UnregisterHandler(handler); 40 bridge_->UnregisterHandler(handler);
41 } 41 }
42 42
43 void AndroidInvalidatorBridgeProxy::Acknowledge(
44 const invalidation::ObjectId& id,
45 const syncer::AckHandle& ack_handle) {
46 bridge_->Acknowledge(id, ack_handle);
47 }
48
43 void AndroidInvalidatorBridgeProxy::SetUniqueId(const string& unique_id) { 49 void AndroidInvalidatorBridgeProxy::SetUniqueId(const string& unique_id) {
44 bridge_->SetUniqueId(unique_id); 50 bridge_->SetUniqueId(unique_id);
45 } 51 }
46 52
47 void AndroidInvalidatorBridgeProxy::UpdateCredentials( 53 void AndroidInvalidatorBridgeProxy::UpdateCredentials(
48 const string& email, const string& token) { 54 const string& email, const string& token) {
49 bridge_->UpdateCredentials(email, token); 55 bridge_->UpdateCredentials(email, token);
50 } 56 }
51 57
52 void AndroidInvalidatorBridgeProxy::SendInvalidation( 58 void AndroidInvalidatorBridgeProxy::SendInvalidation(
53 const syncer::ObjectIdInvalidationMap& invalidation_map) { 59 const syncer::ObjectIdInvalidationMap& invalidation_map) {
54 bridge_->SendInvalidation(invalidation_map); 60 bridge_->SendInvalidation(invalidation_map);
55 } 61 }
56 62
57 } // namespace browser_sync 63 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/android_invalidator_bridge_proxy.h ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698