| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "sync/notifier/invalidator.h" | 10 #include "sync/notifier/invalidator.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual ~AndroidInvalidatorBridgeProxy(); | 26 virtual ~AndroidInvalidatorBridgeProxy(); |
| 27 | 27 |
| 28 // Invalidator implementation. Passes through all calls to the bridge. | 28 // Invalidator implementation. Passes through all calls to the bridge. |
| 29 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 29 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
| 30 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, | 30 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, |
| 31 const syncer::ObjectIdSet& ids) OVERRIDE; | 31 const syncer::ObjectIdSet& ids) OVERRIDE; |
| 32 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 32 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
| 33 virtual void Acknowledge(const invalidation::ObjectId& id, | 33 virtual void Acknowledge(const invalidation::ObjectId& id, |
| 34 const syncer::AckHandle& ack_handle) OVERRIDE; | 34 const syncer::AckHandle& ack_handle) OVERRIDE; |
| 35 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 35 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 36 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | |
| 37 virtual void UpdateCredentials( | 36 virtual void UpdateCredentials( |
| 38 const std::string& email, const std::string& token) OVERRIDE; | 37 const std::string& email, const std::string& token) OVERRIDE; |
| 39 virtual void SendInvalidation( | 38 virtual void SendInvalidation( |
| 40 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 39 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 41 | 40 |
| 42 private: | 41 private: |
| 43 // The notification bridge that we forward to but don't own. | 42 // The notification bridge that we forward to but don't own. |
| 44 AndroidInvalidatorBridge* const bridge_; | 43 AndroidInvalidatorBridge* const bridge_; |
| 45 | 44 |
| 46 DISALLOW_COPY_AND_ASSIGN(AndroidInvalidatorBridgeProxy); | 45 DISALLOW_COPY_AND_ASSIGN(AndroidInvalidatorBridgeProxy); |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 } // namespace browser_sync | 48 } // namespace browser_sync |
| 50 | 49 |
| 51 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ | 50 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_PROXY_H_ |
| OLD | NEW |