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/write_transaction.h" | 5 #include "components/sync/core/write_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/mutable_entry.h" | 8 #include "components/sync/syncable/mutable_entry.h" |
11 #include "components/sync/syncable/syncable_write_transaction.h" | 9 #include "components/sync/syncable/syncable_write_transaction.h" |
12 | 10 |
13 namespace syncer { | 11 namespace syncer { |
14 | 12 |
15 ////////////////////////////////////////////////////////////////////////// | 13 ////////////////////////////////////////////////////////////////////////// |
16 // WriteTransaction member definitions | 14 // WriteTransaction member definitions |
17 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here, | 15 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here, |
18 UserShare* share) | 16 UserShare* share) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 GetDirectory()->GetMetahandlesByAttachmentId( | 80 GetDirectory()->GetMetahandlesByAttachmentId( |
83 transaction_, attachment_id.GetProto(), &handles); | 81 transaction_, attachment_id.GetProto(), &handles); |
84 for (syncable::Directory::Metahandles::iterator iter = handles.begin(); | 82 for (syncable::Directory::Metahandles::iterator iter = handles.begin(); |
85 iter != handles.end(); ++iter) { | 83 iter != handles.end(); ++iter) { |
86 syncable::MutableEntry entry(transaction_, syncable::GET_BY_HANDLE, *iter); | 84 syncable::MutableEntry entry(transaction_, syncable::GET_BY_HANDLE, *iter); |
87 entry.MarkAttachmentAsOnServer(attachment_id.GetProto()); | 85 entry.MarkAttachmentAsOnServer(attachment_id.GetProto()); |
88 } | 86 } |
89 } | 87 } |
90 | 88 |
91 } // namespace syncer | 89 } // namespace syncer |
OLD | NEW |