| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 
| 7 | 7 | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "components/sync/base/model_type.h" | 9 #include "components/sync/base/model_type.h" | 
| 10 #include "components/sync_driver/backend_migrator.h" | 10 #include "components/sync/driver/backend_migrator.h" | 
| 11 | 11 | 
| 12 class ProfileSyncServiceHarness; | 12 class ProfileSyncServiceHarness; | 
| 13 class MigrationWaiter; | 13 class MigrationWaiter; | 
| 14 | 14 | 
| 15 // Helper class to observe and record migration state. | 15 // Helper class to observe and record migration state. | 
| 16 class MigrationWatcher : public browser_sync::MigrationObserver { | 16 class MigrationWatcher : public browser_sync::MigrationObserver { | 
| 17  public: | 17  public: | 
| 18   explicit MigrationWatcher(ProfileSyncServiceHarness* harness); | 18   explicit MigrationWatcher(ProfileSyncServiceHarness* harness); | 
| 19   ~MigrationWatcher() override; | 19   ~MigrationWatcher() override; | 
| 20 | 20 | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 44   // successive calls to OnMigrationStateChanged. | 44   // successive calls to OnMigrationStateChanged. | 
| 45   syncer::ModelTypeSet migrated_types_; | 45   syncer::ModelTypeSet migrated_types_; | 
| 46 | 46 | 
| 47   // The MigrationWatier that is waiting for this migration to complete. | 47   // The MigrationWatier that is waiting for this migration to complete. | 
| 48   MigrationWaiter* migration_waiter_; | 48   MigrationWaiter* migration_waiter_; | 
| 49 | 49 | 
| 50   DISALLOW_COPY_AND_ASSIGN(MigrationWatcher); | 50   DISALLOW_COPY_AND_ASSIGN(MigrationWatcher); | 
| 51 }; | 51 }; | 
| 52 | 52 | 
| 53 #endif  // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 53 #endif  // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WATCHER_H_ | 
| OLD | NEW | 
|---|