| 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 SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ | 5 #ifndef SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ |
| 6 #define SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ | 6 #define SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 void EmitOnInvalidatorStateChange(InvalidatorState state); | 30 void EmitOnInvalidatorStateChange(InvalidatorState state); |
| 31 void EmitOnIncomingInvalidation( | 31 void EmitOnIncomingInvalidation( |
| 32 const ObjectIdInvalidationMap& invalidation_map, | 32 const ObjectIdInvalidationMap& invalidation_map, |
| 33 IncomingInvalidationSource source); | 33 IncomingInvalidationSource source); |
| 34 | 34 |
| 35 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; | 35 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; |
| 36 virtual void UpdateRegisteredIds(InvalidationHandler* handler, | 36 virtual void UpdateRegisteredIds(InvalidationHandler* handler, |
| 37 const ObjectIdSet& ids) OVERRIDE; | 37 const ObjectIdSet& ids) OVERRIDE; |
| 38 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; | 38 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; |
| 39 virtual void Acknowledge(const invalidation::ObjectId& id, |
| 40 const AckHandle& ack_handle) OVERRIDE; |
| 39 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; | 41 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 40 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | 42 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; |
| 41 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; | 43 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; |
| 42 virtual void UpdateCredentials( | 44 virtual void UpdateCredentials( |
| 43 const std::string& email, const std::string& token) OVERRIDE; | 45 const std::string& email, const std::string& token) OVERRIDE; |
| 44 virtual void SendInvalidation( | 46 virtual void SendInvalidation( |
| 45 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 47 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 InvalidatorRegistrar registrar_; | 50 InvalidatorRegistrar registrar_; |
| 49 std::string unique_id_; | 51 std::string unique_id_; |
| 50 std::string state_; | 52 std::string state_; |
| 51 std::string email_; | 53 std::string email_; |
| 52 std::string token_; | 54 std::string token_; |
| 53 ObjectIdInvalidationMap last_sent_invalidation_map_; | 55 ObjectIdInvalidationMap last_sent_invalidation_map_; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace syncer | 58 } // namespace syncer |
| 57 | 59 |
| 58 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ | 60 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ |
| OLD | NEW |