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

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

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 1 month 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/write_transaction.h
diff --git a/sync/internal_api/public/write_transaction.h b/sync/internal_api/public/write_transaction.h
index df27cad62dd05a48b8d5815b37234bada90e7c18..8c11570c37b88796331dc1366d620ba809eccd82 100644
--- a/sync/internal_api/public/write_transaction.h
+++ b/sync/internal_api/public/write_transaction.h
@@ -30,6 +30,12 @@ class WriteTransaction : public BaseTransaction {
// Start a new read/write transaction.
WriteTransaction(const tracked_objects::Location& from_here,
UserShare* share);
+ // |transaction_version| stores updated model and nodes version if model
+ // is changed by the transaction, or syncer::syncable::kInvalidTransaction
+ // if not after transaction is closed. This constructor is used for model
+ // types that support embassy data.
+ WriteTransaction(const tracked_objects::Location& from_here,
+ UserShare* share, int64* transaction_version);
virtual ~WriteTransaction();
// Provide access to the syncable transaction from the API WriteNode.
@@ -40,7 +46,7 @@ class WriteTransaction : public BaseTransaction {
WriteTransaction() {}
void SetTransaction(syncable::WriteTransaction* trans) {
- transaction_ = trans;
+ transaction_ = trans;
}
private:
« no previous file with comments | « chrome/browser/sync/profile_sync_service_bookmark_unittest.cc ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698