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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2054303002: Kill child processes on bad Mojo messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bad-message
Patch Set: . Created 4 years, 6 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/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index b99f92032c4688a1d25dfadad52bb72b544fa619..eef33fa87909d80163c2b4d5d2335a151fc8f06a 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -184,6 +184,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
void OnProcessLaunched() override;
void OnProcessLaunchFailed(int error_code) override;
+ // Called if the EDK notifies this RenderProcessHost that it encountered a
+ // fatal error condition communicating with the child process (e.g. a
+ // malformed internal or bindings message.)
+ void OnMojoProcessError(const std::string& error);
jam 2016/06/13 18:30:39 nit: this should be private. also, no nit to docu
Ken Rockot(use gerrit already) 2016/06/13 22:36:40 Oops, done
+
scoped_refptr<AudioRendererHost> audio_renderer_host() const;
// Call this function when it is evident that the child process is actively

Powered by Google App Engine
This is Rietveld 408576698