| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 49 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 50 | 50 |
| 51 // The following members of the Invalidator interface are not applicable to | 51 // The following members of the Invalidator interface are not applicable to |
| 52 // this invalidator and are implemented as no-ops. | 52 // this invalidator and are implemented as no-ops. |
| 53 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | |
| 54 virtual void UpdateCredentials( | 53 virtual void UpdateCredentials( |
| 55 const std::string& email, const std::string& token) OVERRIDE; | 54 const std::string& email, const std::string& token) OVERRIDE; |
| 56 virtual void SendInvalidation( | 55 virtual void SendInvalidation( |
| 57 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 56 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 58 | 57 |
| 59 bool IsHandlerRegisteredForTest( | 58 bool IsHandlerRegisteredForTest( |
| 60 syncer::InvalidationHandler* handler) const; | 59 syncer::InvalidationHandler* handler) const; |
| 61 syncer::ObjectIdSet GetRegisteredIdsForTest( | 60 syncer::ObjectIdSet GetRegisteredIdsForTest( |
| 62 syncer::InvalidationHandler* handler) const; | 61 syncer::InvalidationHandler* handler) const; |
| 63 | 62 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 75 // Created on the UI thread, used only on |sync_task_runner_|. | 74 // Created on the UI thread, used only on |sync_task_runner_|. |
| 76 const scoped_refptr<Core> core_; | 75 const scoped_refptr<Core> core_; |
| 77 | 76 |
| 78 // Used only on the UI thread. | 77 // Used only on the UI thread. |
| 79 content::NotificationRegistrar registrar_; | 78 content::NotificationRegistrar registrar_; |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace browser_sync | 81 } // namespace browser_sync |
| 83 | 82 |
| 84 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ | 83 #endif // CHROME_BROWSER_SYNC_GLUE_ANDROID_INVALIDATOR_BRIDGE_H_ |
| OLD | NEW |