summaryrefslogtreecommitdiffstats
path: root/sync/syncable/directory.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/syncable/directory.h')
-rw-r--r--sync/syncable/directory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sync/syncable/directory.h b/sync/syncable/directory.h
index f7dd44e..2830eec 100644
--- a/sync/syncable/directory.h
+++ b/sync/syncable/directory.h
@@ -19,6 +19,7 @@
#include "sync/internal_api/public/util/report_unrecoverable_error_function.h"
#include "sync/internal_api/public/util/weak_handle.h"
#include "sync/syncable/dir_open_result.h"
+#include "sync/syncable/entry.h"
#include "sync/syncable/entry_kernel.h"
#include "sync/syncable/metahandle_set.h"
#include "sync/syncable/parent_child_index.h"
@@ -404,6 +405,11 @@ class SYNC_EXPORT Directory {
const sync_pb::AttachmentIdProto& attachment_id_proto,
Metahandles* result);
+ // Change entry to not dirty. Used in special case when we don't want to
+ // persist modified entry on disk. e.g. SyncBackupManager uses this to
+ // preserve sync preferences in DB on disk.
+ void UnmarkDirtyEntry(WriteTransaction* trans, Entry* entry);
+
protected: // for friends, mainly used by Entry constructors
virtual EntryKernel* GetEntryByHandle(int64 handle);
virtual EntryKernel* GetEntryByHandle(int64 metahandle,