OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_BAD_MESSAGE_H_ | 5 #ifndef CONTENT_BROWSER_BAD_MESSAGE_H_ |
6 #define CONTENT_BROWSER_BAD_MESSAGE_H_ | 6 #define CONTENT_BROWSER_BAD_MESSAGE_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 class BrowserMessageFilter; | 9 class BrowserMessageFilter; |
10 class RenderProcessHost; | 10 class RenderProcessHost; |
(...skipping 10 matching lines...) Expand all Loading... |
21 // end. Items may be renamed but do not change the values. We rely on the enum | 21 // end. Items may be renamed but do not change the values. We rely on the enum |
22 // values in histograms. | 22 // values in histograms. |
23 enum BadMessageReason { | 23 enum BadMessageReason { |
24 NC_IN_PAGE_NAVIGATION = 0, | 24 NC_IN_PAGE_NAVIGATION = 0, |
25 RFH_CAN_COMMIT_URL_BLOCKED = 1, | 25 RFH_CAN_COMMIT_URL_BLOCKED = 1, |
26 RFH_CAN_ACCESS_FILES_OF_PAGE_STATE = 2, | 26 RFH_CAN_ACCESS_FILES_OF_PAGE_STATE = 2, |
27 RFH_SANDBOX_FLAGS = 3, | 27 RFH_SANDBOX_FLAGS = 3, |
28 RFH_NO_PROXY_TO_PARENT = 4, | 28 RFH_NO_PROXY_TO_PARENT = 4, |
29 RPH_DESERIALIZATION_FAILED = 5, | 29 RPH_DESERIALIZATION_FAILED = 5, |
30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6, | 30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6, |
31 RVH_FILE_CHOOSER_PATH = 7, | 31 RFH_FILE_CHOOSER_PATH = 7, |
32 RWH_SYNTHETIC_GESTURE = 8, | 32 RWH_SYNTHETIC_GESTURE = 8, |
33 RWH_FOCUS = 9, // obsolete; no longer used | 33 RWH_FOCUS = 9, // obsolete; no longer used |
34 RWH_BLUR = 10, | 34 RWH_BLUR = 10, |
35 RWH_SHARED_BITMAP = 11, | 35 RWH_SHARED_BITMAP = 11, |
36 RWH_BAD_ACK_MESSAGE = 12, | 36 RWH_BAD_ACK_MESSAGE = 12, |
37 RWHVA_SHARED_MEMORY = 13, | 37 RWHVA_SHARED_MEMORY = 13, |
38 SERVICE_WORKER_BAD_URL = 14, | 38 SERVICE_WORKER_BAD_URL = 14, |
39 WC_INVALID_FRAME_SOURCE = 15, | 39 WC_INVALID_FRAME_SOURCE = 15, |
40 RWHVM_UNEXPECTED_FRAME_TYPE = 16, | 40 RWHVM_UNEXPECTED_FRAME_TYPE = 16, |
41 RFPH_DETACH = 17, | 41 RFPH_DETACH = 17, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 // Called when a browser message filter receives a bad IPC message from a | 160 // Called when a browser message filter receives a bad IPC message from a |
161 // renderer or other child process. Logs the event, records a histogram metric | 161 // renderer or other child process. Logs the event, records a histogram metric |
162 // for the |reason|, and terminates the process for |filter|. | 162 // for the |reason|, and terminates the process for |filter|. |
163 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); | 163 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); |
164 | 164 |
165 } // namespace bad_message | 165 } // namespace bad_message |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ | 168 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ |
OLD | NEW |