Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1380)

Unified Diff: sync/internal_api/public/base_transaction.h

Issue 11533008: Use delete journal to remove bookmarks that are already deleted in sync model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/base_transaction.h
diff --git a/sync/internal_api/public/base_transaction.h b/sync/internal_api/public/base_transaction.h
index 7a2ba37e3a2414a208519919515454da3217ed51..e40f7e51bf8c269f15469d8832c164d9cccebb6f 100644
--- a/sync/internal_api/public/base_transaction.h
+++ b/sync/internal_api/public/base_transaction.h
@@ -5,8 +5,8 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_
#define SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_
+#include "sync/api/sync_data.h"
#include "sync/internal_api/public/user_share.h"
-
#include "sync/internal_api/public/base/model_type.h"
#include "sync/util/cryptographer.h"
@@ -43,6 +43,13 @@ class BaseTransaction {
return user_share_;
}
+ // Query directory for delete journals of |type|. Covert to SyncData and
+ // return.
+ void GetDeletedSyncData(ModelType type, SyncDataList *deleted) const;
+
+ // Purge delete journals with given IDs from directory.
+ void PurgeDeletedSyncData(const std::set<int64>& ids);
+
protected:
explicit BaseTransaction(UserShare* share);
virtual ~BaseTransaction();

Powered by Google App Engine
This is Rietveld 408576698