| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 SCO_INVALID_ARGUMENT = 132, | 156 SCO_INVALID_ARGUMENT = 132, |
| 157 RFH_INCONSISTENT_DEVTOOLS_MESSAGE = 133, | 157 RFH_INCONSISTENT_DEVTOOLS_MESSAGE = 133, |
| 158 DSH_DUPLICATE_CONNECTION_ID = 134, | 158 DSH_DUPLICATE_CONNECTION_ID = 134, |
| 159 DSH_NOT_CREATED_SESSION_ID = 135, | 159 DSH_NOT_CREATED_SESSION_ID = 135, |
| 160 DSH_NOT_ALLOCATED_SESSION_ID = 136, | 160 DSH_NOT_ALLOCATED_SESSION_ID = 136, |
| 161 DSH_DELETED_SESSION_ID = 137, | 161 DSH_DELETED_SESSION_ID = 137, |
| 162 DSH_WRONG_STORAGE_PARTITION = 138, | 162 DSH_WRONG_STORAGE_PARTITION = 138, |
| 163 BDH_DISALLOWED_ORIGIN = 139, | 163 BDH_DISALLOWED_ORIGIN = 139, |
| 164 ARH_CREATED_STREAM_WITHOUT_AUTHORIZATION = 140, | 164 ARH_CREATED_STREAM_WITHOUT_AUTHORIZATION = 140, |
| 165 MDDH_INVALID_DEVICE_TYPE_REQUEST = 141, | 165 MDDH_INVALID_DEVICE_TYPE_REQUEST = 141, |
| 166 MDDH_UNAUTHORIZED_ORIGIN = 142, | 166 MDDH_UNAUTHORIZED_ORIGIN = 142, // obsolete; no longer used |
| 167 SWDH_ENABLE_NAVIGATION_PRELOAD_NO_HOST = 143, | 167 SWDH_ENABLE_NAVIGATION_PRELOAD_NO_HOST = 143, |
| 168 SWDH_ENABLE_NAVIGATION_PRELOAD_INVALID_ORIGIN = 144, | 168 SWDH_ENABLE_NAVIGATION_PRELOAD_INVALID_ORIGIN = 144, |
| 169 SWDH_ENABLE_NAVIGATION_PRELOAD_BAD_REGISTRATION_ID = 145, | 169 SWDH_ENABLE_NAVIGATION_PRELOAD_BAD_REGISTRATION_ID = 145, |
| 170 RDH_TRANSFERRING_REQUEST_NOT_FOUND = 146, // Disabled - crbug.com/659613. | 170 RDH_TRANSFERRING_REQUEST_NOT_FOUND = 146, // Disabled - crbug.com/659613. |
| 171 RDH_TRANSFERRING_NONNAVIGATIONAL_REQUEST = 147, | 171 RDH_TRANSFERRING_NONNAVIGATIONAL_REQUEST = 147, |
| 172 SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 148, | 172 SWDH_GET_NAVIGATION_PRELOAD_STATE_NO_HOST = 148, |
| 173 SWDH_GET_NAVIGATION_PRELOAD_STATE_INVALID_ORIGIN = 149, | 173 SWDH_GET_NAVIGATION_PRELOAD_STATE_INVALID_ORIGIN = 149, |
| 174 SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID = 150, | 174 SWDH_GET_NAVIGATION_PRELOAD_STATE_BAD_REGISTRATION_ID = 150, |
| 175 SWDH_SET_NAVIGATION_PRELOAD_HEADER_NO_HOST = 151, | 175 SWDH_SET_NAVIGATION_PRELOAD_HEADER_NO_HOST = 151, |
| 176 SWDH_SET_NAVIGATION_PRELOAD_HEADER_INVALID_ORIGIN = 152, | 176 SWDH_SET_NAVIGATION_PRELOAD_HEADER_INVALID_ORIGIN = 152, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 207 | 207 |
| 208 // Called when a browser message filter receives a bad IPC message from a | 208 // Called when a browser message filter receives a bad IPC message from a |
| 209 // renderer or other child process. Logs the event, records a histogram metric | 209 // renderer or other child process. Logs the event, records a histogram metric |
| 210 // for the |reason|, and terminates the process for |filter|. | 210 // for the |reason|, and terminates the process for |filter|. |
| 211 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); | 211 void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason); |
| 212 | 212 |
| 213 } // namespace bad_message | 213 } // namespace bad_message |
| 214 } // namespace content | 214 } // namespace content |
| 215 | 215 |
| 216 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ | 216 #endif // CONTENT_BROWSER_BAD_MESSAGE_H_ |
| OLD | NEW |