| 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_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Must be called on the UI thread while the sync task runner is still | 39 // Must be called on the UI thread while the sync task runner is still |
| 40 // around. No other member functions on the sync thread may be called after | 40 // around. No other member functions on the sync thread may be called after |
| 41 // this is called. | 41 // this is called. |
| 42 void StopForShutdown(); | 42 void StopForShutdown(); |
| 43 | 43 |
| 44 // Invalidator implementation. Must be called on the sync task runner. | 44 // Invalidator implementation. Must be called on the sync task runner. |
| 45 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 45 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
| 46 virtual void UpdateRegisteredIds(syncer::InvalidationHandler* handler, | 46 virtual void UpdateRegisteredIds(syncer::InvalidationHandler* handler, |
| 47 const syncer::ObjectIdSet& ids) OVERRIDE; | 47 const syncer::ObjectIdSet& ids) OVERRIDE; |
| 48 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 48 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
| 49 virtual void Acknowledge(const invalidation::ObjectId& id, |
| 50 const syncer::AckHandle& ack_handle) OVERRIDE; |
| 49 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 51 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 50 | 52 |
| 51 // The following members of the Invalidator interface are not applicable to | 53 // The following members of the Invalidator interface are not applicable to |
| 52 // this invalidator and are implemented as no-ops. | 54 // this invalidator and are implemented as no-ops. |
| 53 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | 55 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; |
| 54 virtual void UpdateCredentials( | 56 virtual void UpdateCredentials( |
| 55 const std::string& email, const std::string& token) OVERRIDE; | 57 const std::string& email, const std::string& token) OVERRIDE; |
| 56 virtual void SendInvalidation( | 58 virtual void SendInvalidation( |
| 57 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 59 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 58 | 60 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 75 // Created on the UI thread, used only on |sync_task_runner_|. | 77 // Created on the UI thread, used only on |sync_task_runner_|. |
| 76 const scoped_refptr<Core> core_; | 78 const scoped_refptr<Core> core_; |
| 77 | 79 |
| 78 // Used only on the UI thread. | 80 // Used only on the UI thread. |
| 79 content::NotificationRegistrar registrar_; | 81 content::NotificationRegistrar registrar_; |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 } // namespace browser_sync | 84 } // namespace browser_sync |
| 83 | 85 |
| 84 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ | 86 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ |
| OLD | NEW |