Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / invalidation / impl / fake_invalidation_handler.h
blob22b2ab433eb1d0e6f9ac5664807d3e20aa7e0e5d
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_HANDLER_H_
6 #define COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_HANDLER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "components/invalidation/public/invalidation_handler.h"
13 #include "components/invalidation/public/object_id_invalidation_map.h"
15 namespace syncer {
17 class FakeInvalidationHandler : public InvalidationHandler {
18 public:
19 FakeInvalidationHandler();
20 ~FakeInvalidationHandler() override;
22 InvalidatorState GetInvalidatorState() const;
23 const ObjectIdInvalidationMap& GetLastInvalidationMap() const;
24 int GetInvalidationCount() const;
26 // InvalidationHandler implementation.
27 void OnInvalidatorStateChange(InvalidatorState state) override;
28 void OnIncomingInvalidation(
29 const ObjectIdInvalidationMap& invalidation_map) override;
30 std::string GetOwnerName() const override;
32 private:
33 InvalidatorState state_;
34 ObjectIdInvalidationMap last_invalidation_map_;
35 int invalidation_count_;
37 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationHandler);
40 } // namespace syncer
42 #endif // COMPONENTS_INVALIDATION_IMPL_FAKE_INVALIDATION_HANDLER_H_