OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/syncable/model_neutral_mutable_entry.h" | 5 #include "components/sync/syncable/model_neutral_mutable_entry.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "components/sync/base/unique_position.h" | 9 #include "components/sync/base/unique_position.h" |
8 #include "components/sync/syncable/directory.h" | 10 #include "components/sync/syncable/directory.h" |
9 #include "components/sync/syncable/scoped_kernel_lock.h" | 11 #include "components/sync/syncable/scoped_kernel_lock.h" |
10 #include "components/sync/syncable/syncable_changes_version.h" | 12 #include "components/sync/syncable/syncable_changes_version.h" |
11 #include "components/sync/syncable/syncable_util.h" | 13 #include "components/sync/syncable/syncable_util.h" |
12 #include "components/sync/syncable/syncable_write_transaction.h" | 14 #include "components/sync/syncable/syncable_write_transaction.h" |
13 | 15 |
14 using std::string; | 16 using std::string; |
15 | 17 |
16 namespace syncer { | 18 namespace syncer { |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 ModelNeutralMutableEntry::ModelNeutralMutableEntry(BaseWriteTransaction* trans) | 449 ModelNeutralMutableEntry::ModelNeutralMutableEntry(BaseWriteTransaction* trans) |
448 : Entry(trans), base_write_transaction_(trans) {} | 450 : Entry(trans), base_write_transaction_(trans) {} |
449 | 451 |
450 void ModelNeutralMutableEntry::MarkDirty() { | 452 void ModelNeutralMutableEntry::MarkDirty() { |
451 kernel_->mark_dirty(&dir()->kernel()->dirty_metahandles); | 453 kernel_->mark_dirty(&dir()->kernel()->dirty_metahandles); |
452 } | 454 } |
453 | 455 |
454 } // namespace syncable | 456 } // namespace syncable |
455 | 457 |
456 } // namespace syncer | 458 } // namespace syncer |
OLD | NEW |