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

Side by Side Diff: chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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 (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 CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 22 matching lines...) Expand all
33 // |service| and |delegate| must remain valid for the lifetime of this object. 33 // |service| and |delegate| must remain valid for the lifetime of this object.
34 // |extension_ids| is the set of extension IDs for which push messaging is 34 // |extension_ids| is the set of extension IDs for which push messaging is
35 // enabled. 35 // enabled.
36 PushMessagingInvalidationHandler( 36 PushMessagingInvalidationHandler(
37 invalidation::InvalidationService* service, 37 invalidation::InvalidationService* service,
38 PushMessagingInvalidationHandlerDelegate* delegate); 38 PushMessagingInvalidationHandlerDelegate* delegate);
39 virtual ~PushMessagingInvalidationHandler(); 39 virtual ~PushMessagingInvalidationHandler();
40 40
41 // PushMessagingInvalidationMapper implementation. 41 // PushMessagingInvalidationMapper implementation.
42 virtual void SuppressInitialInvalidationsForExtension( 42 virtual void SuppressInitialInvalidationsForExtension(
43 const std::string& extension_id) OVERRIDE; 43 const std::string& extension_id) override;
44 virtual void RegisterExtension(const std::string& extension_id) OVERRIDE; 44 virtual void RegisterExtension(const std::string& extension_id) override;
45 virtual void UnregisterExtension(const std::string& extension_id) OVERRIDE; 45 virtual void UnregisterExtension(const std::string& extension_id) override;
46 46
47 // InvalidationHandler implementation. 47 // InvalidationHandler implementation.
48 virtual void OnInvalidatorStateChange( 48 virtual void OnInvalidatorStateChange(
49 syncer::InvalidatorState state) OVERRIDE; 49 syncer::InvalidatorState state) override;
50 virtual void OnIncomingInvalidation( 50 virtual void OnIncomingInvalidation(
51 const syncer::ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 51 const syncer::ObjectIdInvalidationMap& invalidation_map) override;
52 virtual std::string GetOwnerName() const OVERRIDE; 52 virtual std::string GetOwnerName() const override;
53 53
54 const std::set<std::string>& GetRegisteredExtensionsForTest() const { 54 const std::set<std::string>& GetRegisteredExtensionsForTest() const {
55 return registered_extensions_; 55 return registered_extensions_;
56 } 56 }
57 57
58 private: 58 private:
59 void UpdateRegistrations(); 59 void UpdateRegistrations();
60 60
61 base::ThreadChecker thread_checker_; 61 base::ThreadChecker thread_checker_;
62 invalidation::InvalidationService* const service_; 62 invalidation::InvalidationService* const service_;
63 std::set<std::string> registered_extensions_; 63 std::set<std::string> registered_extensions_;
64 syncer::ObjectIdSet suppressed_ids_; 64 syncer::ObjectIdSet suppressed_ids_;
65 PushMessagingInvalidationHandlerDelegate* const delegate_; 65 PushMessagingInvalidationHandlerDelegate* const delegate_;
66 std::map<invalidation::ObjectId, 66 std::map<invalidation::ObjectId,
67 int64, 67 int64,
68 syncer::ObjectIdLessThan> max_object_version_map_; 68 syncer::ObjectIdLessThan> max_object_version_map_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler); 70 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler);
71 }; 71 };
72 72
73 } // namespace extensions 73 } // namespace extensions
74 74
75 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_ 75 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698