OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /** | 6 /** |
7 * This file defines an enumeration of all PPAPI error codes. | 7 * This file defines an enumeration of all PPAPI error codes. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 * Indicates an attempt to make a PPAPI call on a thread without previously | 133 * Indicates an attempt to make a PPAPI call on a thread without previously |
134 * registering a message loop via PPB_MessageLoop.AttachToCurrentThread. | 134 * registering a message loop via PPB_MessageLoop.AttachToCurrentThread. |
135 * Without this registration step, no PPAPI calls are supported. | 135 * Without this registration step, no PPAPI calls are supported. |
136 */ | 136 */ |
137 PP_ERROR_NO_MESSAGE_LOOP = -51, | 137 PP_ERROR_NO_MESSAGE_LOOP = -51, |
138 /** | 138 /** |
139 * Indicates that the requested operation is not permitted on the current | 139 * Indicates that the requested operation is not permitted on the current |
140 * thread. | 140 * thread. |
141 */ | 141 */ |
142 PP_ERROR_WRONG_THREAD = -52, | 142 PP_ERROR_WRONG_THREAD = -52, |
| 143 /** |
| 144 * Indicates that a null completion callback was used on a thread handling a |
| 145 * blocking message from JavaScript. Null completion callbacks "block until |
| 146 * complete", which could cause the main JavaScript thread to be blocked |
| 147 * excessively. |
| 148 */ |
| 149 PP_ERROR_WOULD_BLOCK_THREAD = -53, |
143 | 150 |
144 /** | 151 /** |
145 * This value indicates that the connection was closed. For TCP sockets, it | 152 * This value indicates that the connection was closed. For TCP sockets, it |
146 * corresponds to a TCP FIN. | 153 * corresponds to a TCP FIN. |
147 */ | 154 */ |
148 PP_ERROR_CONNECTION_CLOSED = -100, | 155 PP_ERROR_CONNECTION_CLOSED = -100, |
149 /** | 156 /** |
150 * This value indicates that the connection was reset. For TCP sockets, it | 157 * This value indicates that the connection was reset. For TCP sockets, it |
151 * corresponds to a TCP RST. | 158 * corresponds to a TCP RST. |
152 */ | 159 */ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 /** | 193 /** |
187 * This value indicates that the message was too large for the transport. | 194 * This value indicates that the message was too large for the transport. |
188 */ | 195 */ |
189 PP_ERROR_MESSAGE_TOO_BIG = -109, | 196 PP_ERROR_MESSAGE_TOO_BIG = -109, |
190 /** | 197 /** |
191 * This value indicates that the host name could not be resolved. | 198 * This value indicates that the host name could not be resolved. |
192 */ | 199 */ |
193 PP_ERROR_NAME_NOT_RESOLVED = -110 | 200 PP_ERROR_NAME_NOT_RESOLVED = -110 |
194 }; | 201 }; |
195 | 202 |
OLD | NEW |