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
3 // found in the LICENSE file.
5 #include "chrome/browser/sync/glue/android_invalidator_bridge_proxy.h"
7 #include "chrome/browser/sync/glue/android_invalidator_bridge.h"
10 using syncer::InvalidatorState
;
12 namespace browser_sync
{
14 AndroidInvalidatorBridgeProxy::AndroidInvalidatorBridgeProxy(
15 AndroidInvalidatorBridge
* bridge
)
20 AndroidInvalidatorBridgeProxy::~AndroidInvalidatorBridgeProxy() {
23 void AndroidInvalidatorBridgeProxy::RegisterHandler(
24 syncer::InvalidationHandler
* handler
) {
25 bridge_
->RegisterHandler(handler
);
28 void AndroidInvalidatorBridgeProxy::UpdateRegisteredIds(
29 syncer::InvalidationHandler
* handler
,
30 const syncer::ObjectIdSet
& ids
) {
31 bridge_
->UpdateRegisteredIds(handler
, ids
);
34 InvalidatorState
AndroidInvalidatorBridgeProxy::GetInvalidatorState() const {
35 return bridge_
->GetInvalidatorState();
38 void AndroidInvalidatorBridgeProxy::UnregisterHandler(
39 syncer::InvalidationHandler
* handler
) {
40 bridge_
->UnregisterHandler(handler
);
43 void AndroidInvalidatorBridgeProxy::Acknowledge(
44 const invalidation::ObjectId
& id
,
45 const syncer::AckHandle
& ack_handle
) {
46 bridge_
->Acknowledge(id
, ack_handle
);
49 void AndroidInvalidatorBridgeProxy::UpdateCredentials(
50 const string
& email
, const string
& token
) {
51 bridge_
->UpdateCredentials(email
, token
);
54 void AndroidInvalidatorBridgeProxy::SendInvalidation(
55 const syncer::ObjectIdInvalidationMap
& invalidation_map
) {
56 bridge_
->SendInvalidation(invalidation_map
);
59 } // namespace browser_sync