diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-13 23:18:02 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-13 23:18:02 +0000 |
commit | 235caa47af34c2f68b26a38d46f1002e56f6cbfe (patch) | |
tree | 0c9394d1337957754d93b1a7c8ca54809f996fae /chrome/common | |
parent | e9d2f166c90ccd612c7ba014c4066840053d5bee (diff) | |
download | chromium_src-235caa47af34c2f68b26a38d46f1002e56f6cbfe.zip chromium_src-235caa47af34c2f68b26a38d46f1002e56f6cbfe.tar.gz chromium_src-235caa47af34c2f68b26a38d46f1002e56f6cbfe.tar.bz2 |
Don't overload the meaning of the RENDERER_PROCESS_TERMINATED notification, instead create a new one for crashing.
The old way of using notifications was incorrect since a RenderProcessHost might have sent only one notification even though a new renderer might have been created after a crash.
BUG=9379
Review URL: http://codereview.chromium.org/66069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_type.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index 942c072..e2b9da2 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -272,12 +272,14 @@ class NotificationType { // details are expected. CWINDOW_CLOSED, - // Indicates that a render process has terminated. The source will be the - // RenderProcessHost that corresponds to the process, and the details is a - // bool specifying whether the termination was expected, i.e. if false it - // means the process crashed. + // Indicates that a RenderProcessHost is destructing. The source will be the + // RenderProcessHost that corresponds to the process. RENDERER_PROCESS_TERMINATED, + // Indicates that a render process has crashed. The source will be the + // corresponding RenderProcessHost. + RENDERER_PROCESS_CRASHED, + // Indicates that a render process has become unresponsive for a period of // time. The source will be the RenderWidgetHost that corresponds to the // hung view, and no details are expected. |