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 #include "sync/internal_api/public/read_transaction.h" | 5 #include "sync/internal_api/public/read_transaction.h" |
6 | 6 |
7 #include "sync/syncable/directory.h" | 7 #include "sync/syncable/directory.h" |
8 #include "sync/syncable/syncable_read_transaction.h" | 8 #include "sync/syncable/syncable_read_transaction.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 29 matching lines...) Expand all Loading... |
40 return transaction_->directory()->GetTransactionVersion(type); | 40 return transaction_->directory()->GetTransactionVersion(type); |
41 } | 41 } |
42 | 42 |
43 void ReadTransaction::GetDataTypeContext( | 43 void ReadTransaction::GetDataTypeContext( |
44 ModelType type, | 44 ModelType type, |
45 sync_pb::DataTypeContext* context) const { | 45 sync_pb::DataTypeContext* context) const { |
46 return transaction_->directory()->GetDataTypeContext( | 46 return transaction_->directory()->GetDataTypeContext( |
47 transaction_, type, context); | 47 transaction_, type, context); |
48 } | 48 } |
49 | 49 |
| 50 void ReadTransaction::GetAttachmentIdsToUpload(ModelType type, |
| 51 AttachmentIdSet* id_set) { |
| 52 DCHECK(id_set); |
| 53 transaction_->directory()->GetAttachmentIdsToUpload( |
| 54 transaction_, type, id_set); |
| 55 } |
| 56 |
50 } // namespace syncer | 57 } // namespace syncer |
OLD | NEW |