| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 5 #ifndef COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ |
| 6 #define COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 6 #define COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 bool IsHandlerRegistered(InvalidationHandler* handler) const; | 23 bool IsHandlerRegistered(InvalidationHandler* handler) const; |
| 24 ObjectIdSet GetRegisteredIds(InvalidationHandler* handler) const; | 24 ObjectIdSet GetRegisteredIds(InvalidationHandler* handler) const; |
| 25 const std::string& GetUniqueId() const; | 25 const std::string& GetUniqueId() const; |
| 26 const std::string& GetCredentialsEmail() const; | 26 const std::string& GetCredentialsEmail() const; |
| 27 const std::string& GetCredentialsToken() const; | 27 const std::string& GetCredentialsToken() const; |
| 28 | 28 |
| 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 | 32 |
| 33 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; | 33 virtual void RegisterHandler(InvalidationHandler* handler) override; |
| 34 virtual void UpdateRegisteredIds(InvalidationHandler* handler, | 34 virtual void UpdateRegisteredIds(InvalidationHandler* handler, |
| 35 const ObjectIdSet& ids) OVERRIDE; | 35 const ObjectIdSet& ids) override; |
| 36 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; | 36 virtual void UnregisterHandler(InvalidationHandler* handler) override; |
| 37 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; | 37 virtual InvalidatorState GetInvalidatorState() const override; |
| 38 virtual void UpdateCredentials( | 38 virtual void UpdateCredentials( |
| 39 const std::string& email, const std::string& token) OVERRIDE; | 39 const std::string& email, const std::string& token) override; |
| 40 virtual void RequestDetailedStatus( | 40 virtual void RequestDetailedStatus( |
| 41 base::Callback<void(const base::DictionaryValue&)> callback) const | 41 base::Callback<void(const base::DictionaryValue&)> callback) const |
| 42 OVERRIDE; | 42 override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 InvalidatorRegistrar registrar_; | 45 InvalidatorRegistrar registrar_; |
| 46 std::string state_; | 46 std::string state_; |
| 47 std::string email_; | 47 std::string email_; |
| 48 std::string token_; | 48 std::string token_; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace syncer | 51 } // namespace syncer |
| 52 | 52 |
| 53 #endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ | 53 #endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATOR_H_ |
| OLD | NEW |