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

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

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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 <map>
8 #include <set> 9 #include <set>
9 #include <string> 10 #include <string>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
14 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_mapper.h" 15 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_mapper.h"
15 #include "sync/notifier/invalidation_handler.h" 16 #include "sync/notifier/invalidation_handler.h"
17 #include "sync/notifier/invalidation_util.h"
16 18
17 namespace invalidation { 19 namespace invalidation {
18 class InvalidationService; 20 class InvalidationService;
19 } 21 }
20 22
21 namespace extensions { 23 namespace extensions {
22 24
23 class PushMessagingInvalidationHandlerDelegate; 25 class PushMessagingInvalidationHandlerDelegate;
24 26
25 // This class maps extension IDs to the corresponding object IDs, manages 27 // This class maps extension IDs to the corresponding object IDs, manages
(...skipping 27 matching lines...) Expand all
53 } 55 }
54 56
55 private: 57 private:
56 void UpdateRegistrations(); 58 void UpdateRegistrations();
57 59
58 base::ThreadChecker thread_checker_; 60 base::ThreadChecker thread_checker_;
59 invalidation::InvalidationService* const service_; 61 invalidation::InvalidationService* const service_;
60 std::set<std::string> registered_extensions_; 62 std::set<std::string> registered_extensions_;
61 syncer::ObjectIdSet suppressed_ids_; 63 syncer::ObjectIdSet suppressed_ids_;
62 PushMessagingInvalidationHandlerDelegate* const delegate_; 64 PushMessagingInvalidationHandlerDelegate* const delegate_;
65 std::map<invalidation::ObjectId,
66 int64,
67 syncer::ObjectIdLessThan> max_object_version_map_;
63 68
64 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler); 69 DISALLOW_COPY_AND_ASSIGN(PushMessagingInvalidationHandler);
65 }; 70 };
66 71
67 } // namespace extensions 72 } // namespace extensions
68 73
69 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698