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|. |