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