Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index f7a4d20e42889f57faa2e5d2b419b3fdded4476b..ada898dece2f07f12735fa59d411587f999350a0 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -576,6 +576,13 @@ class CONTENT_EXPORT ContentBrowserClient { |
// Return NULL to use the default one for the platform to be created. |
virtual LocationProvider* OverrideSystemLocationProvider(); |
+ // Allows an embedder to decide whether a child process should be killed |
+ // if it sends a bad IPC message. |
+ // Apart from testing, it is an incredibly bad idea from a security |
+ // perspective to allow a child process to survive after sending a bad |
+ // message. |
+ virtual bool ShouldKillChildProcessOnBadMessage(); |
+ |
#if defined(OS_POSIX) && !defined(OS_MACOSX) |
// Populates |mappings| with all files that need to be mapped before launching |
// a child process. |