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

Side by Side Diff: sync/notifier/dropped_invalidation_tracker.h

Issue 23754021: Invalidation trickles mega-patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « sync/notifier/ack_handler.cc ('k') | sync/notifier/dropped_invalidation_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
6 #define SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
7
8 #include "google/cacheinvalidation/include/types.h"
9 #include "sync/base/sync_export.h"
10 #include "sync/internal_api/public/base/ack_handle.h"
11 #include "sync/internal_api/public/util/weak_handle.h"
12 #include "sync/notifier/ack_handler.h"
13
14 namespace syncer {
15
16 class Invalidation;
17
18 class SYNC_EXPORT DroppedInvalidationTracker {
19 public:
20 DroppedInvalidationTracker(const invalidation::ObjectId& id);
21 ~DroppedInvalidationTracker();
22
23 const invalidation::ObjectId& GetObjectId() const;
24
25 void Drop(WeakHandle<AckHandler> handler, AckHandle handle);
26
27 void RecoverFromDropEvent();
28 bool IsRecoveringFromDropEvent() const;
29
30 private:
31 invalidation::ObjectId id_;
32 AckHandle drop_ack_handle_;
33 WeakHandle<AckHandler> drop_ack_handler_;
34
35 DISALLOW_COPY_AND_ASSIGN(DroppedInvalidationTracker);
36 };
37
38 } // namespace syncer
39
40 #endif // SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
OLDNEW
« no previous file with comments | « sync/notifier/ack_handler.cc ('k') | sync/notifier/dropped_invalidation_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698