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

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: rebase 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..6b9354e977dc56ad5328927226c9c4ad7b0fffac 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -17,6 +17,7 @@
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
#include "base/process/process.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "build/build_config.h"
#include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
@@ -370,6 +371,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
base::FilePath GetEventLogFilePathWithExtensions(const base::FilePath& file);
#endif
+ static void OnMojoError(
+ base::WeakPtr<RenderProcessHostImpl> process,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ const std::string& error);
+
// IPC::Senders which live as long as this RPH and provide safe, opaque
// access to ChannelProxy SendNow() and SendOnIOThread() respectively.
const std::unique_ptr<SafeSenderProxy> immediate_sender_;

Powered by Google App Engine
This is Rietveld 408576698