| Index: content/browser/bad_message.h
|
| diff --git a/content/browser/bad_message.h b/content/browser/bad_message.h
|
| index 57c946b807a28894a81a7e0c1cf8221d4303c5e7..0ff8db89e9e0b3bca80a1ad7b03adec28281b8cf 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,
|
| @@ -148,7 +148,7 @@ enum BadMessageReason {
|
| DBMF_INVALID_ORIGIN_ON_GET_SPACE = 124,
|
| DBMF_INVALID_ORIGIN_ON_MODIFIED = 125,
|
| DBMF_INVALID_ORIGIN_ON_CLOSED = 126,
|
| - WSH_INVALID_HEADER_VALUE = 127,
|
| + WSI_INVALID_HEADER_VALUE = 127,
|
| SWDH_SET_HOSTED_VERSION_INVALID_HOST = 128,
|
| SWDH_SET_HOSTED_VERSION_PROCESS_MISMATCH = 129,
|
|
|
| @@ -164,6 +164,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|.
|
|
|