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

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

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final review changes Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698