Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: components/invalidation/fake_invalidation_handler.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_INVALIDATION_HANDLER_H_ 5 #ifndef COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_
6 #define COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_ 6 #define COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "components/invalidation/invalidation_handler.h" 12 #include "components/invalidation/invalidation_handler.h"
13 #include "components/invalidation/object_id_invalidation_map.h" 13 #include "components/invalidation/object_id_invalidation_map.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 class FakeInvalidationHandler : public InvalidationHandler { 17 class FakeInvalidationHandler : public InvalidationHandler {
18 public: 18 public:
19 FakeInvalidationHandler(); 19 FakeInvalidationHandler();
20 virtual ~FakeInvalidationHandler(); 20 virtual ~FakeInvalidationHandler();
21 21
22 InvalidatorState GetInvalidatorState() const; 22 InvalidatorState GetInvalidatorState() const;
23 const ObjectIdInvalidationMap& GetLastInvalidationMap() const; 23 const ObjectIdInvalidationMap& GetLastInvalidationMap() const;
24 int GetInvalidationCount() const; 24 int GetInvalidationCount() const;
25 25
26 // InvalidationHandler implementation. 26 // InvalidationHandler implementation.
27 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; 27 virtual void OnInvalidatorStateChange(InvalidatorState state) override;
28 virtual void OnIncomingInvalidation( 28 virtual void OnIncomingInvalidation(
29 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 29 const ObjectIdInvalidationMap& invalidation_map) override;
30 virtual std::string GetOwnerName() const OVERRIDE; 30 virtual std::string GetOwnerName() const override;
31 31
32 private: 32 private:
33 InvalidatorState state_; 33 InvalidatorState state_;
34 ObjectIdInvalidationMap last_invalidation_map_; 34 ObjectIdInvalidationMap last_invalidation_map_;
35 int invalidation_count_; 35 int invalidation_count_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationHandler); 37 DISALLOW_COPY_AND_ASSIGN(FakeInvalidationHandler);
38 }; 38 };
39 39
40 } // namespace syncer 40 } // namespace syncer
41 41
42 #endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_ 42 #endif // COMPONENTS_INVALIDATION_FAKE_INVALIDATION_HANDLER_H_
OLDNEW
« no previous file with comments | « components/infobars/core/infobar_container.h ('k') | components/invalidation/fake_invalidation_state_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698