diff options
author | haitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-05 01:15:51 +0000 |
---|---|---|
committer | haitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-05 01:15:51 +0000 |
commit | 6add02aaf5d93a32bec7e32e1b0ff527f1bb3d18 (patch) | |
tree | b2a8fbec180d9a6457ed0856a5cb213e9e2c751a /sync/sync.gyp | |
parent | 0e11e9fa745c6174f709773346368c4f771ddb2f (diff) | |
download | chromium_src-6add02aaf5d93a32bec7e32e1b0ff527f1bb3d18.zip chromium_src-6add02aaf5d93a32bec7e32e1b0ff527f1bb3d18.tar.gz chromium_src-6add02aaf5d93a32bec7e32e1b0ff527f1bb3d18.tar.bz2 |
[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
Diffstat (limited to 'sync/sync.gyp')
-rw-r--r-- | sync/sync.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
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', |