| 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_
|
|
|