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

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: 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..f3cf6ec5242d6f35a00ba61413e48fe44238f149 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -113,6 +113,10 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Message::Sender,
// the first IPC arrives.
virtual base::ProcessHandle GetHandle() = 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 AllowTerminateOnUnresponsive() const = 0;
Charlie Reis 2012/03/01 21:08:17 We should move this to below SuddenTerminationAllo
nasko 2012/03/01 22:50:15 Done.
Charlie Reis 2012/03/02 00:16:43 Upon reflection, I'm leaning toward something like
nasko 2012/03/02 18:40:36 This makes sense, especially if we want the preren
+
// Transport DIB functions ---------------------------------------------------
// Return the TransportDIB for the given id. On Linux, this can involve

Powered by Google App Engine
This is Rietveld 408576698