| 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 void EmitOnInvalidatorStateChange(InvalidatorState state); | 29 void EmitOnInvalidatorStateChange(InvalidatorState state); |
| 30 void EmitOnIncomingInvalidation( | 30 void EmitOnIncomingInvalidation( |
| 31 const ObjectIdInvalidationMap& invalidation_map, | 31 const ObjectIdInvalidationMap& invalidation_map, |
| 32 IncomingInvalidationSource source); | 32 IncomingInvalidationSource source); |
| 33 | 33 |
| 34 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; | 34 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; |
| 35 virtual void UpdateRegisteredIds(InvalidationHandler* handler, | 35 virtual void UpdateRegisteredIds(InvalidationHandler* handler, |
| 36 const ObjectIdSet& ids) OVERRIDE; | 36 const ObjectIdSet& ids) OVERRIDE; |
| 37 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; | 37 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; |
| 38 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; | 38 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 39 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | |
| 40 virtual void UpdateCredentials( | 39 virtual void UpdateCredentials( |
| 41 const std::string& email, const std::string& token) OVERRIDE; | 40 const std::string& email, const std::string& token) OVERRIDE; |
| 42 virtual void SendInvalidation( | 41 virtual void SendInvalidation( |
| 43 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 42 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 InvalidatorRegistrar registrar_; | 45 InvalidatorRegistrar registrar_; |
| 47 std::string unique_id_; | |
| 48 std::string state_; | 46 std::string state_; |
| 49 std::string email_; | 47 std::string email_; |
| 50 std::string token_; | 48 std::string token_; |
| 51 ObjectIdInvalidationMap last_sent_invalidation_map_; | 49 ObjectIdInvalidationMap last_sent_invalidation_map_; |
| 52 }; | 50 }; |
| 53 | 51 |
| 54 } // namespace syncer | 52 } // namespace syncer |
| 55 | 53 |
| 56 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ | 54 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ |
| OLD | NEW |