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_BRIDGED_INVALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 36 virtual void RegisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
37 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, | 37 virtual void UpdateRegisteredIds(syncer::InvalidationHandler * handler, |
38 const syncer::ObjectIdSet& ids) OVERRIDE; | 38 const syncer::ObjectIdSet& ids) OVERRIDE; |
39 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; | 39 virtual void UnregisterHandler(syncer::InvalidationHandler* handler) OVERRIDE; |
40 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 40 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
41 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | 41 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; |
42 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; | 42 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; |
43 virtual void UpdateCredentials( | 43 virtual void UpdateCredentials( |
44 const std::string& email, const std::string& token) OVERRIDE; | 44 const std::string& email, const std::string& token) OVERRIDE; |
45 virtual void SendInvalidation( | 45 virtual void SendInvalidation( |
46 const syncer::ObjectIdStateMap& id_state_map) OVERRIDE; | 46 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
47 | 47 |
48 private: | 48 private: |
49 // The notification bridge that we register the observers with. | 49 // The notification bridge that we register the observers with. |
50 ChromeSyncNotificationBridge* const bridge_; | 50 ChromeSyncNotificationBridge* const bridge_; |
51 | 51 |
52 // The delegate we are wrapping. | 52 // The delegate we are wrapping. |
53 const scoped_ptr<syncer::Invalidator> delegate_; | 53 const scoped_ptr<syncer::Invalidator> delegate_; |
54 | 54 |
55 const syncer::InvalidatorState default_invalidator_state_; | 55 const syncer::InvalidatorState default_invalidator_state_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(BridgedInvalidator); | 57 DISALLOW_COPY_AND_ASSIGN(BridgedInvalidator); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace browser_sync | 60 } // namespace browser_sync |
61 | 61 |
62 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ | 62 #endif // CHROME_BROWSER_SYNC_GLUE_BRIDGED_INVALIDATOR_H_ |
OLD | NEW |