OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "chrome/browser/sync/glue/android_invalidator_bridge_proxy.h" | |
6 | |
7 #include "chrome/browser/sync/glue/android_invalidator_bridge.h" | |
8 | |
9 using std::string; | |
10 using syncer::InvalidatorState; | |
11 | |
12 namespace browser_sync { | |
13 | |
14 AndroidInvalidatorBridgeProxy::AndroidInvalidatorBridgeProxy( | |
15 AndroidInvalidatorBridge* bridge) | |
16 : bridge_(bridge) { | |
17 DCHECK(bridge_); | |
18 } | |
19 | |
20 AndroidInvalidatorBridgeProxy::~AndroidInvalidatorBridgeProxy() { | |
21 } | |
22 | |
23 void AndroidInvalidatorBridgeProxy::RegisterHandler( | |
24 syncer::InvalidationHandler* handler) { | |
25 bridge_->RegisterHandler(handler); | |
26 } | |
27 | |
28 void AndroidInvalidatorBridgeProxy::UpdateRegisteredIds( | |
29 syncer::InvalidationHandler* handler, | |
30 const syncer::ObjectIdSet& ids) { | |
31 bridge_->UpdateRegisteredIds(handler, ids); | |
32 } | |
33 | |
34 InvalidatorState AndroidInvalidatorBridgeProxy::GetInvalidatorState() const { | |
35 return bridge_->GetInvalidatorState(); | |
36 } | |
37 | |
38 void AndroidInvalidatorBridgeProxy::UnregisterHandler( | |
39 syncer::InvalidationHandler* handler) { | |
40 bridge_->UnregisterHandler(handler); | |
41 } | |
42 | |
43 void AndroidInvalidatorBridgeProxy::Acknowledge( | |
44 const invalidation::ObjectId& id, | |
45 const syncer::AckHandle& ack_handle) { | |
46 bridge_->Acknowledge(id, ack_handle); | |
47 } | |
48 | |
49 void AndroidInvalidatorBridgeProxy::UpdateCredentials( | |
50 const string& email, const string& token) { | |
51 bridge_->UpdateCredentials(email, token); | |
52 } | |
53 | |
54 void AndroidInvalidatorBridgeProxy::SendInvalidation( | |
55 const syncer::ObjectIdInvalidationMap& invalidation_map) { | |
56 bridge_->SendInvalidation(invalidation_map); | |
57 } | |
58 | |
59 } // namespace browser_sync | |
OLD | NEW |