| 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 30 matching lines...) Expand all Loading... |
| 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, | 50 void ReadTransaction::GetAttachmentIdsToUpload(ModelType type, |
| 51 AttachmentIdSet* id_set) const { | 51 AttachmentIdList* ids) const { |
| 52 DCHECK(id_set); | 52 DCHECK(ids); |
| 53 transaction_->directory()->GetAttachmentIdsToUpload( | 53 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids); |
| 54 transaction_, type, id_set); | |
| 55 } | 54 } |
| 56 | 55 |
| 57 std::string ReadTransaction::GetStoreBirthday() const { | 56 std::string ReadTransaction::GetStoreBirthday() const { |
| 58 return transaction_->directory()->store_birthday(); | 57 return transaction_->directory()->store_birthday(); |
| 59 } | 58 } |
| 60 | 59 |
| 61 } // namespace syncer | 60 } // namespace syncer |
| OLD | NEW |