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

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

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 SYNC_NOTIFIER_UNACKED_INVALIDATION_SET_H_ 5 #ifndef COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_H_
6 #define SYNC_NOTIFIER_UNACKED_INVALIDATION_SET_H_ 6 #define COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "sync/base/sync_export.h" 10 #include "components/invalidation/invalidation_export.h"
11 #include "sync/internal_api/public/base/invalidation.h" 11 #include "sync/internal_api/public/base/invalidation.h"
12 #include "sync/internal_api/public/base/invalidation_util.h"
12 #include "sync/internal_api/public/util/weak_handle.h" 13 #include "sync/internal_api/public/util/weak_handle.h"
13 #include "sync/notifier/invalidation_util.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 } // namespace base 17 } // namespace base
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 namespace test_util { 21 namespace test_util {
22 class UnackedInvalidationSetEqMatcher; 22 class UnackedInvalidationSetEqMatcher;
23 } // test_util 23 } // test_util
24 24
25 class SingleObjectInvalidationSet; 25 class SingleObjectInvalidationSet;
26 class ObjectIdInvalidationMap; 26 class ObjectIdInvalidationMap;
27 class AckHandle; 27 class AckHandle;
28 28
29 // Manages the set of invalidations that are awaiting local acknowledgement for 29 // Manages the set of invalidations that are awaiting local acknowledgement for
30 // a particular ObjectId. This set of invalidations will be persisted across 30 // a particular ObjectId. This set of invalidations will be persisted across
31 // restarts, though this class is not directly responsible for that. 31 // restarts, though this class is not directly responsible for that.
32 class SYNC_EXPORT UnackedInvalidationSet { 32 class INVALIDATION_EXPORT UnackedInvalidationSet {
33 public: 33 public:
34 static const size_t kMaxBufferedInvalidations; 34 static const size_t kMaxBufferedInvalidations;
35 35
36 UnackedInvalidationSet(invalidation::ObjectId id); 36 UnackedInvalidationSet(invalidation::ObjectId id);
37 UnackedInvalidationSet(const UnackedInvalidationSet& other); 37 UnackedInvalidationSet(const UnackedInvalidationSet& other);
38 ~UnackedInvalidationSet(); 38 ~UnackedInvalidationSet();
39 39
40 // Returns the ObjectID of the invalidations this class is tracking. 40 // Returns the ObjectID of the invalidations this class is tracking.
41 const invalidation::ObjectId& object_id() const; 41 const invalidation::ObjectId& object_id() const;
42 42
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 invalidation::ObjectId object_id_; 108 invalidation::ObjectId object_id_;
109 InvalidationsSet invalidations_; 109 InvalidationsSet invalidations_;
110 }; 110 };
111 111
112 typedef std::map<invalidation::ObjectId, 112 typedef std::map<invalidation::ObjectId,
113 UnackedInvalidationSet, 113 UnackedInvalidationSet,
114 ObjectIdLessThan> UnackedInvalidationsMap; 114 ObjectIdLessThan> UnackedInvalidationsMap;
115 115
116 } // namespace syncer 116 } // namespace syncer
117 117
118 #endif // SYNC_NOTIFIER_UNACKED_INVALIDATION_SET_H_ 118 #endif // COMPONENTS_INVALIDATION_UNACKED_INVALIDATION_SET_H_
OLDNEW
« no previous file with comments | « components/invalidation/ticl_invalidation_service_unittest.cc ('k') | components/invalidation/unacked_invalidation_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698