From 6add02aaf5d93a32bec7e32e1b0ff527f1bb3d18 Mon Sep 17 00:00:00 2001 From: "haitaol@chromium.org" Date: Sat, 5 Jan 2013 01:15:51 +0000 Subject: [Sync] Add support for loading, updating and querying delete journals in Directory. Delete journals keeps deleted metas until the persistence of the deletes in native model is confirmed. When an entry is deleted in sync model, a copy is added to delete journals in memory and saved in database later. Next time when the client restarts, if some native data doesn't match with sync data but matches with a delete journal, it's safe to assume that it's because native delete was not persisted and the native data should be deleted. This helps prevent back-from-dead problem due to native model and sync model get out-of-sync. BUG=121928 Review URL: https://chromiumcodereview.appspot.com/11441026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175248 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/sync.gyp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sync/sync.gyp') diff --git a/sync/sync.gyp b/sync/sync.gyp index 17671bc..6b93e6d 100644 --- a/sync/sync.gyp +++ b/sync/sync.gyp @@ -127,6 +127,8 @@ 'sessions/sync_session_context.cc', 'sessions/sync_session_context.h', 'syncable/blob.h', + 'syncable/delete_journal.cc', + 'syncable/delete_journal.h', 'syncable/dir_open_result.h', 'syncable/directory.cc', 'syncable/directory.h', -- cgit v1.1