| 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 19 matching lines...) Expand all Loading... |
| 30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6, | 30 RVH_CAN_ACCESS_FILES_OF_PAGE_STATE = 6, |
| 31 RFH_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, // obsolete; no longer used | 40 RWHVM_UNEXPECTED_FRAME_TYPE = 16, |
| 41 RFPH_DETACH = 17, | 41 RFPH_DETACH = 17, |
| 42 DFH_BAD_EMBEDDER_MESSAGE = 18, | 42 DFH_BAD_EMBEDDER_MESSAGE = 18, |
| 43 NC_AUTO_SUBFRAME = 19, | 43 NC_AUTO_SUBFRAME = 19, |
| 44 CSDH_NOT_RECOGNIZED = 20, | 44 CSDH_NOT_RECOGNIZED = 20, |
| 45 DSMF_OPEN_STORAGE = 21, // obsolete; no longer used | 45 DSMF_OPEN_STORAGE = 21, // obsolete; no longer used |
| 46 DSMF_LOAD_STORAGE = 22, | 46 DSMF_LOAD_STORAGE = 22, |
| 47 DBMF_INVALID_ORIGIN_ON_OPEN = 23, | 47 DBMF_INVALID_ORIGIN_ON_OPEN = 23, |
| 48 DBMF_DB_NOT_OPEN_ON_MODIFY = 24, | 48 DBMF_DB_NOT_OPEN_ON_MODIFY = 24, |
| 49 DBMF_DB_NOT_OPEN_ON_CLOSE = 25, | 49 DBMF_DB_NOT_OPEN_ON_CLOSE = 25, |
| 50 DBMF_INVALID_ORIGIN_ON_SQLITE_ERROR = 26, | 50 DBMF_INVALID_ORIGIN_ON_SQLITE_ERROR = 26, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Called when a browser message filter receives a bad IPC message from a | 197 // Called when a browser message filter receives a bad IPC message from a |
| 198 // renderer or other child process. Logs the event, records a histogram metric | 198 // renderer or other child process. Logs the event, records a histogram metric |
| 199 // for the |reason|, and terminates the process for |filter|. | 199 // for the |reason|, and terminates the process for |filter|. |
| 200 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); | 200 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); |
| 201 | 201 |
| 202 } // namespace bad_message | 202 } // namespace bad_message |
| 203 } // namespace content | 203 } // namespace content |
| 204 | 204 |
| 205 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ | 205 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ |
| OLD | NEW |