| 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_UTIL_H_ | 8 #ifndef SYNC_ENGINE_SYNCER_UTIL_H_ |
| 9 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_UTIL_H_ | 9 #define SYNC_ENGINE_SYNCER_UTIL_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "chrome/browser/sync/engine/syncer.h" | 16 #include "sync/engine/syncer.h" |
| 17 #include "chrome/browser/sync/engine/syncer_types.h" | 17 #include "sync/engine/syncer_types.h" |
| 18 #include "chrome/browser/sync/syncable/syncable.h" | 18 #include "sync/syncable/syncable.h" |
| 19 #include "chrome/browser/sync/syncable/syncable_id.h" | 19 #include "sync/syncable/syncable_id.h" |
| 20 | 20 |
| 21 namespace browser_sync { | 21 namespace browser_sync { |
| 22 | 22 |
| 23 class Cryptographer; | 23 class Cryptographer; |
| 24 class SyncEntity; | 24 class SyncEntity; |
| 25 | 25 |
| 26 class SyncerUtil { | 26 class SyncerUtil { |
| 27 public: | 27 public: |
| 28 static void ChangeEntryIDAndUpdateChildren( | 28 static void ChangeEntryIDAndUpdateChildren( |
| 29 syncable::WriteTransaction* trans, | 29 syncable::WriteTransaction* trans, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 static void MarkDeletedChildrenSynced( | 127 static void MarkDeletedChildrenSynced( |
| 128 syncable::Directory* dir, | 128 syncable::Directory* dir, |
| 129 std::set<syncable::Id>* deleted_folders); | 129 std::set<syncable::Id>* deleted_folders); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 DISALLOW_IMPLICIT_CONSTRUCTORS(SyncerUtil); | 132 DISALLOW_IMPLICIT_CONSTRUCTORS(SyncerUtil); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace browser_sync | 135 } // namespace browser_sync |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_UTIL_H_ | 137 #endif // SYNC_ENGINE_SYNCER_UTIL_H_ |
| OLD | NEW |