| 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_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 Loading... |
| 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::SetUniqueId(const string& unique_id) { | |
| 44 bridge_->SetUniqueId(unique_id); | |
| 45 } | |
| 46 | |
| 47 void AndroidInvalidatorBridgeProxy::UpdateCredentials( | 43 void AndroidInvalidatorBridgeProxy::UpdateCredentials( |
| 48 const string& email, const string& token) { | 44 const string& email, const string& token) { |
| 49 bridge_->UpdateCredentials(email, token); | 45 bridge_->UpdateCredentials(email, token); |
| 50 } | 46 } |
| 51 | 47 |
| 52 void AndroidInvalidatorBridgeProxy::SendInvalidation( | 48 void AndroidInvalidatorBridgeProxy::SendInvalidation( |
| 53 const syncer::ObjectIdInvalidationMap& invalidation_map) { | 49 const syncer::ObjectIdInvalidationMap& invalidation_map) { |
| 54 bridge_->SendInvalidation(invalidation_map); | 50 bridge_->SendInvalidation(invalidation_map); |
| 55 } | 51 } |
| 56 | 52 |
| 57 } // namespace browser_sync | 53 } // namespace browser_sync |
| OLD | NEW |