Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: chrome/browser/importer/importer.h

Issue 3386014: This adds some plumbing for propagating the status and error code of a (Closed)
Patch Set: Fixed Mac code to handle both SEGV and BUS Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/sandboxed_extension_unpacker.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698