OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ |
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ |
7 | 7 |
8 #include "chrome/browser/importer/importer_data_types.h" | 8 #include "chrome/common/importer/importer_data_types.h" |
9 | 9 |
10 namespace importer { | 10 namespace importer { |
11 | 11 |
12 // Objects implement this interface when they wish to be notified of events | 12 // Objects implement this interface when they wish to be notified of events |
13 // during the import process. | 13 // during the import process. |
14 class ImporterProgressObserver { | 14 class ImporterProgressObserver { |
15 public: | 15 public: |
16 // Invoked when the import begins. | 16 // Invoked when the import begins. |
17 virtual void ImportStarted() = 0; | 17 virtual void ImportStarted() = 0; |
18 | 18 |
19 // Invoked when data for the specified item is about to be collected. | 19 // Invoked when data for the specified item is about to be collected. |
20 virtual void ImportItemStarted(ImportItem item) = 0; | 20 virtual void ImportItemStarted(ImportItem item) = 0; |
21 | 21 |
22 // Invoked when data for the specified item has been collected from the | 22 // Invoked when data for the specified item has been collected from the |
23 // source profile and is now ready for further processing. | 23 // source profile and is now ready for further processing. |
24 virtual void ImportItemEnded(ImportItem item) = 0; | 24 virtual void ImportItemEnded(ImportItem item) = 0; |
25 | 25 |
26 // Invoked when the source profile has been imported. | 26 // Invoked when the source profile has been imported. |
27 virtual void ImportEnded() = 0; | 27 virtual void ImportEnded() = 0; |
28 | 28 |
29 protected: | 29 protected: |
30 virtual ~ImporterProgressObserver() {} | 30 virtual ~ImporterProgressObserver() {} |
31 }; | 31 }; |
32 | 32 |
33 } // namespace importer | 33 } // namespace importer |
34 | 34 |
35 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ | 35 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_PROGRESS_OBSERVER_H_ |
OLD | NEW |