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

Unified Diff: content/public/browser/render_process_host.h

Issue 9514016: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporating Charlie's feedback. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698