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 "components/sync/core/read_transaction.h" | 5 #include "components/sync/core/read_transaction.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include "components/sync/syncable/directory.h" | 7 #include "components/sync/syncable/directory.h" |
10 #include "components/sync/syncable/syncable_read_transaction.h" | 8 #include "components/sync/syncable/syncable_read_transaction.h" |
11 | 9 |
12 namespace syncer { | 10 namespace syncer { |
13 | 11 |
14 ////////////////////////////////////////////////////////////////////////// | 12 ////////////////////////////////////////////////////////////////////////// |
15 // ReadTransaction member definitions | 13 // ReadTransaction member definitions |
16 ReadTransaction::ReadTransaction(const tracked_objects::Location& from_here, | 14 ReadTransaction::ReadTransaction(const tracked_objects::Location& from_here, |
17 UserShare* share) | 15 UserShare* share) |
18 : BaseTransaction(share), transaction_(NULL), close_transaction_(true) { | 16 : BaseTransaction(share), transaction_(NULL), close_transaction_(true) { |
(...skipping 30 matching lines...) Expand all Loading... |
49 AttachmentIdList* ids) const { | 47 AttachmentIdList* ids) const { |
50 DCHECK(ids); | 48 DCHECK(ids); |
51 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids); | 49 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids); |
52 } | 50 } |
53 | 51 |
54 std::string ReadTransaction::GetStoreBirthday() const { | 52 std::string ReadTransaction::GetStoreBirthday() const { |
55 return transaction_->directory()->store_birthday(); | 53 return transaction_->directory()->store_birthday(); |
56 } | 54 } |
57 | 55 |
58 } // namespace syncer | 56 } // namespace syncer |
OLD | NEW |