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

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

Issue 1009583004: Add UMA histograms and logging for bad IPC message handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actions.xml claims to be pretty printed Created 5 years, 9 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb774988a2b83a2e8d0ccc6fd7ecfcdf8624c8d2..ed3724eba24d82adf2535d9ecf075119efd96018 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -88,8 +88,11 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
virtual void AddObserver(RenderProcessHostObserver* observer) = 0;
virtual void RemoveObserver(RenderProcessHostObserver* observer) = 0;
- // Called when a received message cannot be decoded.
- virtual void ReceivedBadMessage() = 0;
+ // Called when a received message cannot be decoded. Terminates the renderer.
+ // Most callers should not call this directly, but instead should call
+ // bad_message::BadMessageReceived() or an equivalent method outside of the
+ // content module.
+ virtual void ShutdownForBadMessage() = 0;
// Track the count of visible widgets. Called by listeners to register and
// unregister visibility.
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698