summaryrefslogtreecommitdiffstats
path: root/sync/syncable/syncable.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/syncable/syncable.h')
-rw-r--r--sync/syncable/syncable.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sync/syncable/syncable.h b/sync/syncable/syncable.h
index 3eb22f4..d568a01 100644
--- a/sync/syncable/syncable.h
+++ b/sync/syncable/syncable.h
@@ -246,6 +246,13 @@ enum CreateNewUpdateItem {
typedef std::set<int64> MetahandleSet;
+// Reason for unlinking.
+enum UnlinkReason {
+ NODE_MANIPULATION, // To be used by any operation manipulating the linked
+ // list.
+ DATA_TYPE_PURGE // To be used when purging a dataype.
+};
+
// TODO(akalin): Move EntryKernel and related into its own header file.
// Why the singular enums? So the code compile-time dispatches instead of
@@ -920,7 +927,8 @@ class Directory {
// The semantic checking is implemented higher up.
bool UnlinkEntryFromOrder(EntryKernel* entry,
WriteTransaction* trans,
- ScopedKernelLock* lock);
+ ScopedKernelLock* lock,
+ UnlinkReason unlink_reason);
DirOpenResult OpenImpl(
DirectoryBackingStore* store, const std::string& name,