Remove override of View::HitTestRect() from ImageView
[chromium-blink-merge.git] / sync / notifier / fake_invalidator.h
blobc94f82fbf1c52f5c3ef07afbbf900afb4fb4b6e1
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
3 // found in the LICENSE file.
5 #ifndef SYNC_NOTIFIER_FAKE_INVALIDATOR_H_
6 #define SYNC_NOTIFIER_FAKE_INVALIDATOR_H_
8 #include <string>
10 #include "base/callback_forward.h"
11 #include "base/compiler_specific.h"
12 #include "sync/notifier/invalidation_util.h"
13 #include "sync/notifier/invalidator.h"
14 #include "sync/notifier/invalidator_registrar.h"
16 namespace syncer {
18 class FakeInvalidator : public Invalidator {
19 public:
20 FakeInvalidator();
21 virtual ~FakeInvalidator();
23 bool IsHandlerRegistered(InvalidationHandler* handler) const;
24 ObjectIdSet GetRegisteredIds(InvalidationHandler* handler) const;
25 const std::string& GetUniqueId() const;
26 const std::string& GetCredentialsEmail() const;
27 const std::string& GetCredentialsToken() const;
29 void EmitOnInvalidatorStateChange(InvalidatorState state);
30 void EmitOnIncomingInvalidation(
31 const ObjectIdInvalidationMap& invalidation_map);
33 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE;
34 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
35 const ObjectIdSet& ids) OVERRIDE;
36 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
37 virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
38 virtual void UpdateCredentials(
39 const std::string& email, const std::string& token) OVERRIDE;
40 virtual void RequestDetailedStatus(
41 base::Callback<void(const base::DictionaryValue&)> callback) const
42 OVERRIDE;
44 private:
45 InvalidatorRegistrar registrar_;
46 std::string state_;
47 std::string email_;
48 std::string token_;
51 } // namespace syncer
53 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_