Chromium Code Reviews| Index: content/public/browser/render_process_host.h |
| diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h |
| index 189ede627c20b9e1640592d658e5b7160bf4802c..34f45694d8bffb2aa39383a03c6912b45e55a8a0 100644 |
| --- a/content/public/browser/render_process_host.h |
| +++ b/content/public/browser/render_process_host.h |
| @@ -180,6 +180,10 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Message::Sender, |
| // Returns true if the process can be abnormally terminated. |
| virtual bool SuddenTerminationAllowed() const = 0; |
| + // Returns true if the process can be killed if it is unresponsive. This will |
| + // only be the case if there is only one view using this renderer process. |
| + virtual bool TerminateOnUnresponsiveAllowed() const = 0; |
|
jam
2012/03/02 00:21:10
i dont think this new method is necessary? can't t
nasko
2012/03/02 18:40:36
They probably could, but this means that they shou
Charlie Reis
2012/03/02 19:17:02
I agree with Nasko. It's not clear to users of th
jam
2012/03/06 17:25:26
There's a cost every time we add a method to a pub
nasko
2012/03/06 18:16:25
The reason I picked the function is that the only
|
| + |
| // Returns how long the child has been idle. The definition of idle |
| // depends on when a derived class calls mark_child_process_activity_time(). |
| // This is a rough indicator and its resolution should not be better than |