| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // Called by the ExternalProcessImporterHost on import cancel. | 320 // Called by the ExternalProcessImporterHost on import cancel. |
| 321 virtual void Cancel(); | 321 virtual void Cancel(); |
| 322 | 322 |
| 323 // Cancel import process on IO thread. | 323 // Cancel import process on IO thread. |
| 324 void CancelImportProcessOnIOThread(); | 324 void CancelImportProcessOnIOThread(); |
| 325 | 325 |
| 326 // Report item completely downloaded on IO thread. | 326 // Report item completely downloaded on IO thread. |
| 327 void NotifyItemFinishedOnIOThread(importer::ImportItem import_item); | 327 void NotifyItemFinishedOnIOThread(importer::ImportItem import_item); |
| 328 | 328 |
| 329 // Cancel import on process crash. | 329 // Cancel import on process crash. |
| 330 virtual void OnProcessCrashed(); | 330 virtual void OnProcessCrashed(int exit_code); |
| 331 | 331 |
| 332 // Notifies the importerhost that import has finished, and calls Release(). | 332 // Notifies the importerhost that import has finished, and calls Release(). |
| 333 void Cleanup(); | 333 void Cleanup(); |
| 334 | 334 |
| 335 // ProfileImportProcessHost messages ---------------------------------------- | 335 // ProfileImportProcessHost messages ---------------------------------------- |
| 336 // The following methods are called by ProfileImportProcessHost when the | 336 // The following methods are called by ProfileImportProcessHost when the |
| 337 // corresponding message has been received from the import process. | 337 // corresponding message has been received from the import process. |
| 338 virtual void OnImportStart(); | 338 virtual void OnImportStart(); |
| 339 virtual void OnImportFinished(bool succeeded, std::string error_msg); | 339 virtual void OnImportFinished(bool succeeded, std::string error_msg); |
| 340 virtual void OnImportItemStart(int item_data); | 340 virtual void OnImportItemStart(int item_data); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 // first run UI. | 515 // first run UI. |
| 516 void StartImportingWithUI(gfx::NativeWindow parent_window, | 516 void StartImportingWithUI(gfx::NativeWindow parent_window, |
| 517 int16 items, | 517 int16 items, |
| 518 ImporterHost* coordinator, | 518 ImporterHost* coordinator, |
| 519 const importer::ProfileInfo& source_profile, | 519 const importer::ProfileInfo& source_profile, |
| 520 Profile* target_profile, | 520 Profile* target_profile, |
| 521 ImportObserver* observer, | 521 ImportObserver* observer, |
| 522 bool first_run); | 522 bool first_run); |
| 523 | 523 |
| 524 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 524 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| OLD | NEW |