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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // Called by the ExternalProcessImporterHost on import cancel. | 337 // Called by the ExternalProcessImporterHost on import cancel. |
338 virtual void Cancel(); | 338 virtual void Cancel(); |
339 | 339 |
340 // Cancel import process on IO thread. | 340 // Cancel import process on IO thread. |
341 void CancelImportProcessOnIOThread(); | 341 void CancelImportProcessOnIOThread(); |
342 | 342 |
343 // Report item completely downloaded on IO thread. | 343 // Report item completely downloaded on IO thread. |
344 void NotifyItemFinishedOnIOThread(importer::ImportItem import_item); | 344 void NotifyItemFinishedOnIOThread(importer::ImportItem import_item); |
345 | 345 |
346 // Cancel import on process crash. | 346 // Cancel import on process crash. |
347 virtual void OnProcessCrashed(); | 347 virtual void OnProcessCrashed(int exit_code); |
348 | 348 |
349 // Notifies the importerhost that import has finished, and calls Release(). | 349 // Notifies the importerhost that import has finished, and calls Release(). |
350 void Cleanup(); | 350 void Cleanup(); |
351 | 351 |
352 // ProfileImportProcessHost messages ---------------------------------------- | 352 // ProfileImportProcessHost messages ---------------------------------------- |
353 // The following methods are called by ProfileImportProcessHost when the | 353 // The following methods are called by ProfileImportProcessHost when the |
354 // corresponding message has been received from the import process. | 354 // corresponding message has been received from the import process. |
355 virtual void OnImportStart(); | 355 virtual void OnImportStart(); |
356 virtual void OnImportFinished(bool succeeded, std::string error_msg); | 356 virtual void OnImportFinished(bool succeeded, std::string error_msg); |
357 virtual void OnImportItemStart(int item_data); | 357 virtual void OnImportItemStart(int item_data); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // first run UI. | 532 // first run UI. |
533 void StartImportingWithUI(gfx::NativeWindow parent_window, | 533 void StartImportingWithUI(gfx::NativeWindow parent_window, |
534 uint16 items, | 534 uint16 items, |
535 ImporterHost* coordinator, | 535 ImporterHost* coordinator, |
536 const importer::ProfileInfo& source_profile, | 536 const importer::ProfileInfo& source_profile, |
537 Profile* target_profile, | 537 Profile* target_profile, |
538 ImportObserver* observer, | 538 ImportObserver* observer, |
539 bool first_run); | 539 bool first_run); |
540 | 540 |
541 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 541 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
OLD | NEW |