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

Unified Diff: content/browser/bad_message.h

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | content/browser/bad_message.cc » ('j') | content/browser/frame_host/render_frame_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bad_message.h
diff --git a/content/browser/bad_message.h b/content/browser/bad_message.h
index 21f56c801423511a549d783cb2d03da342f06ad0..b5cd9519d14b03ce8aed6fa92676fc24b2343932 100644
--- a/content/browser/bad_message.h
+++ b/content/browser/bad_message.h
@@ -131,8 +131,8 @@ enum BadMessageReason {
RDHI_WRONG_STORAGE_PARTITION = 107,
RDH_INVALID_REQUEST_ID = 108,
BDH_SERVICE_NOT_ALLOWED_FOR_ORIGIN = 109,
- WSH_SEND_BLOB_DURING_BLOB_SEND = 110,
- WSH_SEND_FRAME_DURING_BLOB_SEND = 111,
+ WSI_SEND_BLOB_DURING_BLOB_SEND = 110,
+ WSI_SEND_FRAME_DURING_BLOB_SEND = 111,
RFH_UNEXPECTED_LOAD_START = 112,
NMF_INVALID_ARGUMENT = 113,
RFH_INVALID_ORIGIN_ON_COMMIT = 114,
@@ -158,6 +158,9 @@ enum BadMessageReason {
// and terminates the process for |host|.
void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason);
+// Equivalent to the above, but callable from any thread.
+void ReceivedBadMessage(int render_process_id, BadMessageReason reason);
+
// Called when a browser message filter receives a bad IPC message from a
// renderer or other child process. Logs the event, records a histogram metric
// for the |reason|, and terminates the process for |filter|.
« no previous file with comments | « no previous file | content/browser/bad_message.cc » ('j') | content/browser/frame_host/render_frame_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698