| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 // Utility functions manipulating syncable::Entries, intended for use by the | 5 // Utility functions manipulating syncable::Entries, intended for use by the |
| 6 // syncer. | 6 // syncer. |
| 7 | 7 |
| 8 #ifndef SYNC_ENGINE_SYNCER_UTIL_H_ | 8 #ifndef SYNC_ENGINE_SYNCER_UTIL_H_ |
| 9 #define SYNC_ENGINE_SYNCER_UTIL_H_ | 9 #define SYNC_ENGINE_SYNCER_UTIL_H_ |
| 10 | 10 |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "sync/engine/syncer.h" | 15 #include "sync/engine/syncer.h" |
| 16 #include "sync/engine/syncer_types.h" | 16 #include "sync/engine/syncer_types.h" |
| 17 #include "sync/syncable/entry_kernel.h" | 17 #include "sync/syncable/entry_kernel.h" |
| 18 #include "sync/syncable/metahandle_set.h" | 18 #include "sync/syncable/metahandle_set.h" |
| 19 #include "sync/syncable/mutable_entry.h" |
| 19 #include "sync/syncable/syncable_id.h" | 20 #include "sync/syncable/syncable_id.h" |
| 20 | 21 |
| 21 namespace sync_pb { | 22 namespace sync_pb { |
| 22 class SyncEntity; | 23 class SyncEntity; |
| 23 } // namespace sync_pb | 24 } // namespace sync_pb |
| 24 | 25 |
| 25 namespace syncer { | 26 namespace syncer { |
| 26 | 27 |
| 27 namespace syncable { | 28 namespace syncable { |
| 28 class BaseTransaction; | 29 class BaseTransaction; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const sync_pb::SyncEntity& update, | 100 const sync_pb::SyncEntity& update, |
| 100 syncable::MutableEntry* target); | 101 syncable::MutableEntry* target); |
| 101 | 102 |
| 102 void MarkDeletedChildrenSynced( | 103 void MarkDeletedChildrenSynced( |
| 103 syncable::Directory* dir, | 104 syncable::Directory* dir, |
| 104 std::set<syncable::Id>* deleted_folders); | 105 std::set<syncable::Id>* deleted_folders); |
| 105 | 106 |
| 106 } // namespace syncer | 107 } // namespace syncer |
| 107 | 108 |
| 108 #endif // SYNC_ENGINE_SYNCER_UTIL_H_ | 109 #endif // SYNC_ENGINE_SYNCER_UTIL_H_ |
| OLD | NEW |