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