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