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. 4 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ 7 8 #include "chrome/common/importer/importer_data_types.h" 9 10 namespace importer { 11 12 // Objects implement this interface when they wish to be notified of events 13 // during the import process. 14 class ImporterProgressObserver { 15 public: 16 // Invoked when the import begins. 17 virtual void ImportStarted() = 0; 18 19 // Invoked when data for the specified item is about to be collected. 20 virtual void ImportItemStarted(ImportItem item) = 0; 21 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; 25 26 // Invoked when the source profile has been imported. 27 virtual void ImportEnded() = 0; 28 29 protected: 30 virtual ~ImporterProgressObserver() {} 31 }; 32 33 } // namespace importer 34 35 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ 36