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

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

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 virtual ~PushMessagingInvalidationHandler(); 36 virtual ~PushMessagingInvalidationHandler();
37 37
38 // PushMessagingInvalidationMapper implementation. 38 // PushMessagingInvalidationMapper implementation.
39 virtual void RegisterExtension(const std::string& extension_id) OVERRIDE; 39 virtual void RegisterExtension(const std::string& extension_id) OVERRIDE;
40 virtual void UnregisterExtension(const std::string& extension_id) OVERRIDE; 40 virtual void UnregisterExtension(const std::string& extension_id) OVERRIDE;
41 41
42 // InvalidationHandler implementation. 42 // InvalidationHandler implementation.
43 virtual void OnInvalidatorStateChange( 43 virtual void OnInvalidatorStateChange(
44 syncer::InvalidatorState state) OVERRIDE; 44 syncer::InvalidatorState state) OVERRIDE;
45 virtual void OnIncomingInvalidation( 45 virtual void OnIncomingInvalidation(
46 const syncer::ObjectIdStateMap& id_state_map, 46 const syncer::ObjectIdInvalidationMap& invalidation_map,
47 syncer::IncomingInvalidationSource source) OVERRIDE; 47 syncer::IncomingInvalidationSource source) OVERRIDE;
48 48
49 const std::set<std::string>& GetRegisteredExtensionsForTest() const { 49 const std::set<std::string>& GetRegisteredExtensionsForTest() const {
50 return registered_extensions_; 50 return registered_extensions_;
51 } 51 }
52 52
53 private: 53 private:
54 void UpdateRegistrations(); 54 void UpdateRegistrations();
55 55
56 base::ThreadChecker thread_checker_; 56 base::ThreadChecker thread_checker_;
57 InvalidationFrontend* const service_; 57 InvalidationFrontend* const service_;
58 std::set<std::string> registered_extensions_; 58 std::set<std::string> registered_extensions_;
59 PushMessagingInvalidationHandlerDelegate* const delegate_; 59 PushMessagingInvalidationHandlerDelegate* const delegate_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler); 61 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler);
62 }; 62 };
63 63
64 } // namespace extensions 64 } // namespace extensions
65 65
66 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_ 66 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698