| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_USS_MIGRATOR_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_IMPL_USS_MIGRATOR_H_ |
| 7 |
| 8 #include "components/sync/base/model_type.h" |
| 9 |
| 10 namespace syncer { |
| 11 |
| 12 class ModelTypeWorker; |
| 13 struct UserShare; |
| 14 |
| 15 // Pulls all the data for |type| out of the directory and sends it to |worker| |
| 16 // as the result of an initial GetUpdates. |batch_size| is only a parameter so |
| 17 // it can be lowered for unit testing. Returns whether migration was a success. |
| 18 bool MigrateDirectoryData(ModelType type, |
| 19 UserShare* user_share, |
| 20 ModelTypeWorker* worker, |
| 21 int batch_size = 64); |
| 22 |
| 23 } // namespace syncer |
| 24 |
| 25 #endif // COMPONENTS_SYNC_ENGINE_IMPL_USS_MIGRATOR_H_ |
| OLD | NEW |