diff options
Diffstat (limited to 'sync/internal_api/public/read_transaction.h')
-rw-r--r-- | sync/internal_api/public/read_transaction.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sync/internal_api/public/read_transaction.h b/sync/internal_api/public/read_transaction.h index 02e2633..3a3dc8d 100644 --- a/sync/internal_api/public/read_transaction.h +++ b/sync/internal_api/public/read_transaction.h @@ -13,6 +13,10 @@ namespace tracked_objects { class Location; } // namespace tracked_objects +namespace sync_pb { +class DataTypeContext; +} + namespace syncer { struct UserShare; @@ -35,7 +39,11 @@ class SYNC_EXPORT ReadTransaction : public BaseTransaction { // Return |transaction_version| of |type| stored in sync directory's // persisted info. - int64 GetModelVersion(ModelType type); + int64 GetModelVersion(ModelType type) const; + + // Fills |context| with the datatype context associated with |type|. + void GetDataTypeContext(ModelType type, + sync_pb::DataTypeContext* context) const; private: void* operator new(size_t size); // Transaction is meant for stack use only. |