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 /* From pp_errors.idl modified Thu May 15 16:12:26 2014. */ | 6 /* From pp_errors.idl modified Tue Sep 23 11:55:48 2014. */ |
7 | 7 |
8 #ifndef PPAPI_C_PP_ERRORS_H_ | 8 #ifndef PPAPI_C_PP_ERRORS_H_ |
9 #define PPAPI_C_PP_ERRORS_H_ | 9 #define PPAPI_C_PP_ERRORS_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 | 12 |
13 /** | 13 /** |
14 * @file | 14 * @file |
15 * This file defines an enumeration of all PPAPI error codes. | 15 * This file defines an enumeration of all PPAPI error codes. |
16 */ | 16 */ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 /** | 143 /** |
| 144 * Returned if you try to use a null completion callback to "block until |
| 145 * complete" on a thread that is handling a blocking message from JavaScript. |
| 146 * Using blocking completion callbacks while servicing a blocking JavaScript |
| 147 * is not permitted, because doing so may block the main JavaScript thread |
| 148 * excessively. |
| 149 */ |
| 150 PP_ERROR_WOULD_BLOCK_THREAD = -53, |
| 151 /** |
144 * 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 |
145 * corresponds to a TCP FIN. | 153 * corresponds to a TCP FIN. |
146 */ | 154 */ |
147 PP_ERROR_CONNECTION_CLOSED = -100, | 155 PP_ERROR_CONNECTION_CLOSED = -100, |
148 /** | 156 /** |
149 * 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 |
150 * corresponds to a TCP RST. | 158 * corresponds to a TCP RST. |
151 */ | 159 */ |
152 PP_ERROR_CONNECTION_RESET = -101, | 160 PP_ERROR_CONNECTION_RESET = -101, |
153 /** | 161 /** |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 * This value indicates that the host name could not be resolved. | 198 * This value indicates that the host name could not be resolved. |
191 */ | 199 */ |
192 PP_ERROR_NAME_NOT_RESOLVED = -110 | 200 PP_ERROR_NAME_NOT_RESOLVED = -110 |
193 }; | 201 }; |
194 /** | 202 /** |
195 * @} | 203 * @} |
196 */ | 204 */ |
197 | 205 |
198 #endif /* PPAPI_C_PP_ERRORS_H_ */ | 206 #endif /* PPAPI_C_PP_ERRORS_H_ */ |
199 | 207 |
OLD | NEW |