diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 13:56:25 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 13:56:25 +0000 |
commit | 7c6877dea4bdbc7bd434ea9c96795529e466903c (patch) | |
tree | d7ac3fa32188710955166e416c6bd632759fcf10 /chrome/browser/extensions/extension_process_manager.h | |
parent | 5b3986e89eca4e3045dde25635e270f6ea5d2961 (diff) | |
download | chromium_src-7c6877dea4bdbc7bd434ea9c96795529e466903c.zip chromium_src-7c6877dea4bdbc7bd434ea9c96795529e466903c.tar.gz chromium_src-7c6877dea4bdbc7bd434ea9c96795529e466903c.tar.bz2 |
Display an infobar alert when extension process crashes.
Also correctly handle crashes in task manager. The infobar allows user to restart the extension process.
TEST=Install buildbot extension, see its content in the shelf. Open task manager, kill extension process. Click "restart" in the infobar that should appear. The extension content in the shelf should re-appear after the crash.
http://crbug.com/14111
Review URL: http://codereview.chromium.org/126289
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.h')
-rw-r--r-- | chrome/browser/extensions/extension_process_manager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h index 9cd861c..a5c6296 100644 --- a/chrome/browser/extensions/extension_process_manager.h +++ b/chrome/browser/extensions/extension_process_manager.h @@ -57,6 +57,12 @@ class ExtensionProcessManager : public NotificationObserver { // from our lists. void OnExtensionHostDestroyed(ExtensionHost* host); + // Called after an extension render process crashes. + void OnExtensionProcessCrashed(ExtensionHost* host); + + // Called after an extension process successfully restarts after crash. + void OnExtensionProcessRestored(ExtensionHost* host); + private: // Called just after |host| is created so it can be registered in our lists. void OnExtensionHostCreated(ExtensionHost* host, bool is_background); |