Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: components/sync/engine_impl/uss_migrator.h

Issue 2442583003: [Sync] Start implementation of migration for USS. (Closed)
Patch Set: Fix other tests. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698