OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SYNCABLE_WRITE_TRANSACTION_H_ | 5 #ifndef SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ |
6 #define SYNC_SYNCABLE_WRITE_TRANSACTION_H_ | 6 #define SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ |
7 | 7 |
8 #include "sync/base/sync_export.h" | 8 #include "sync/base/sync_export.h" |
9 #include "sync/syncable/base_transaction.h" | |
10 #include "sync/syncable/entry_kernel.h" | 9 #include "sync/syncable/entry_kernel.h" |
| 10 #include "sync/syncable/syncable_base_transaction.h" |
11 | 11 |
12 namespace syncer { | 12 namespace syncer { |
13 namespace syncable { | 13 namespace syncable { |
14 | 14 |
15 SYNC_EXPORT extern const int64 kInvalidTransactionVersion; | 15 SYNC_EXPORT extern const int64 kInvalidTransactionVersion; |
16 | 16 |
17 // Locks db in constructor, unlocks in destructor. | 17 // Locks db in constructor, unlocks in destructor. |
18 class WriteTransaction : public BaseTransaction { | 18 class WriteTransaction : public BaseTransaction { |
19 public: | 19 public: |
20 WriteTransaction(const tracked_objects::Location& from_here, | 20 WriteTransaction(const tracked_objects::Location& from_here, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Stores new transaction version of changed model and nodes if model is | 58 // Stores new transaction version of changed model and nodes if model is |
59 // indeed changed. kInvalidTransactionVersion otherwise. Not owned. | 59 // indeed changed. kInvalidTransactionVersion otherwise. Not owned. |
60 int64* transaction_version_; | 60 int64* transaction_version_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(WriteTransaction); | 62 DISALLOW_COPY_AND_ASSIGN(WriteTransaction); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace syncable | 65 } // namespace syncable |
66 } // namespace syncer | 66 } // namespace syncer |
67 | 67 |
68 #endif // SYNC_SYNCABLE_WRITE_TRANSACTION_H_ | 68 #endif // SYNC_SYNCABLE_SYNCABLE_WRITE_TRANSACTION_H_ |
OLD | NEW |