1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_
8 #include "chrome/common/importer/importer_data_types.h"
12 // Objects implement this interface when they wish to be notified of events
13 // during the import process.
14 class ImporterProgressObserver
{
16 // Invoked when the import begins.
17 virtual void ImportStarted() = 0;
19 // Invoked when data for the specified item is about to be collected.
20 virtual void ImportItemStarted(ImportItem item
) = 0;
22 // Invoked when data for the specified item has been collected from the
23 // source profile and is now ready for further processing.
24 virtual void ImportItemEnded(ImportItem item
) = 0;
26 // Invoked when the source profile has been imported.
27 virtual void ImportEnded() = 0;
30 virtual ~ImporterProgressObserver() {}
33 } // namespace importer
35 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_