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

Side by Side Diff: sync/internal_api/public/base_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: Restore heap unallocatability of write transaction 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_
6 #define SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_
7 7
8 #include "sync/internal_api/public/user_share.h" 8 #include "sync/internal_api/public/user_share.h"
9 9
10 #include "sync/internal_api/public/base/model_type.h" 10 #include "sync/internal_api/public/base/model_type.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 // Provide access to the underlying syncable objects from BaseNode. 29 // Provide access to the underlying syncable objects from BaseNode.
30 virtual syncable::BaseTransaction* GetWrappedTrans() const = 0; 30 virtual syncable::BaseTransaction* GetWrappedTrans() const = 0;
31 Cryptographer* GetCryptographer() const; 31 Cryptographer* GetCryptographer() const;
32 ModelTypeSet GetEncryptedTypes() const; 32 ModelTypeSet GetEncryptedTypes() const;
33 33
34 syncable::Directory* GetDirectory() const { 34 syncable::Directory* GetDirectory() const {
35 return directory_; 35 return directory_;
36 } 36 }
37 37
38 // Return |transaction_version| of |type| stored in sync directory's
39 // persisted info.
40 int64 GetModelVersion(ModelType type);
41
38 protected: 42 protected:
39 explicit BaseTransaction(UserShare* share); 43 explicit BaseTransaction(UserShare* share);
40 virtual ~BaseTransaction(); 44 virtual ~BaseTransaction();
41 45
42 BaseTransaction() : directory_(NULL) { } 46 BaseTransaction() : directory_(NULL) { }
43 47
44 private: 48 private:
45 syncable::Directory* directory_; 49 syncable::Directory* directory_;
46 50
47 DISALLOW_COPY_AND_ASSIGN(BaseTransaction); 51 DISALLOW_COPY_AND_ASSIGN(BaseTransaction);
48 }; 52 };
49 53
50 } // namespace syncer 54 } // namespace syncer
51 55
52 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_ 56 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698