| OLD | NEW |
| (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_ |
| OLD | NEW |