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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/notifier/ack_handler.cc ('k') | sync/notifier/dropped_invalidation_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/dropped_invalidation_tracker.h
diff --git a/sync/notifier/dropped_invalidation_tracker.h b/sync/notifier/dropped_invalidation_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..a31f4bb8b6d894b46d4300c5574e8e1de51e4571
--- /dev/null
+++ b/sync/notifier/dropped_invalidation_tracker.h
@@ -0,0 +1,40 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
+#define SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
+
+#include "google/cacheinvalidation/include/types.h"
+#include "sync/base/sync_export.h"
+#include "sync/internal_api/public/base/ack_handle.h"
+#include "sync/internal_api/public/util/weak_handle.h"
+#include "sync/notifier/ack_handler.h"
+
+namespace syncer {
+
+class Invalidation;
+
+class SYNC_EXPORT DroppedInvalidationTracker {
+ public:
+ DroppedInvalidationTracker(const invalidation::ObjectId& id);
+ ~DroppedInvalidationTracker();
+
+ const invalidation::ObjectId& GetObjectId() const;
+
+ void Drop(WeakHandle<AckHandler> handler, AckHandle handle);
+
+ void RecoverFromDropEvent();
+ bool IsRecoveringFromDropEvent() const;
+
+ private:
+ invalidation::ObjectId id_;
+ AckHandle drop_ack_handle_;
+ WeakHandle<AckHandler> drop_ack_handler_;
+
+ DISALLOW_COPY_AND_ASSIGN(DroppedInvalidationTracker);
+};
+
+} // namespace syncer
+
+#endif // SYNC_NOTIFIER_DROPPED_INVALIDATION_TRACKER_H_
« 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