| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 * This value indicates that the plugin sent bad input data to a resource, | 89 * This value indicates that the plugin sent bad input data to a resource, |
| 90 * leaving it in an invalid state. The resource can't be used after returning | 90 * leaving it in an invalid state. The resource can't be used after returning |
| 91 * this error and should be released. | 91 * this error and should be released. |
| 92 */ | 92 */ |
| 93 PP_ERROR_MALFORMED_INPUT = -14, | 93 PP_ERROR_MALFORMED_INPUT = -14, |
| 94 /** | 94 /** |
| 95 * This value indicates that a resource has failed. The resource can't be | 95 * This value indicates that a resource has failed. The resource can't be |
| 96 * used after returning this error and should be released. | 96 * used after returning this error and should be released. |
| 97 */ | 97 */ |
| 98 PP_ERROR_RESOURCE_FAILED = -15, | 98 PP_ERROR_RESOURCE_FAILED = -15, |
| 99 | 99 /** |
| 100 * This value indicates that there is a security related issue |
| 101 */ |
| 102 PP_ERROR_SECURITY = -16, |
| 100 /** This value indicates failure due to a file that does not exist. */ | 103 /** This value indicates failure due to a file that does not exist. */ |
| 101 PP_ERROR_FILENOTFOUND = -20, | 104 PP_ERROR_FILENOTFOUND = -20, |
| 102 /** This value indicates failure due to a file that already exists. */ | 105 /** This value indicates failure due to a file that already exists. */ |
| 103 PP_ERROR_FILEEXISTS = -21, | 106 PP_ERROR_FILEEXISTS = -21, |
| 104 /** This value indicates failure due to a file that is too big. */ | 107 /** This value indicates failure due to a file that is too big. */ |
| 105 PP_ERROR_FILETOOBIG = -22, | 108 PP_ERROR_FILETOOBIG = -22, |
| 106 /** | 109 /** |
| 107 * This value indicates failure due to a file having been modified | 110 * This value indicates failure due to a file having been modified |
| 108 * unexpectedly. | 111 * unexpectedly. |
| 109 */ | 112 */ |
| 110 PP_ERROR_FILECHANGED = -23, | 113 PP_ERROR_FILECHANGED = -23, |
| 111 /** This value indicates that the pathname does not reference a file. */ | 114 /** This value indicates that the pathname does not reference a file. */ |
| 112 PP_ERROR_NOTAFILE = -24, | 115 PP_ERROR_NOTAFILE = -24, |
| 116 /** This value indicates that the file is not empty */ |
| 117 PP_ERROR_FILENOTEMPTY = -25, |
| 118 /** Indicates that there are too many opened files */ |
| 119 PP_ERROR_FILE_TOO_MANY_OPENED = -26, |
| 120 /** This value indicates that an IO error occured */ |
| 121 PP_ERROR_FILE_IO = -27, |
| 122 /** This value indicates that path is not a directory*/ |
| 123 PP_ERROR_NOTADIRECTORY = -28, |
| 113 /** This value indicates failure due to a time limit being exceeded. */ | 124 /** This value indicates failure due to a time limit being exceeded. */ |
| 114 PP_ERROR_TIMEDOUT = -30, | 125 PP_ERROR_TIMEDOUT = -30, |
| 115 /** | 126 /** |
| 116 * This value indicates that the user cancelled rather than providing | 127 * This value indicates that the user cancelled rather than providing |
| 117 * expected input. | 128 * expected input. |
| 118 */ | 129 */ |
| 119 PP_ERROR_USERCANCEL = -40, | 130 PP_ERROR_USERCANCEL = -40, |
| 120 /** | 131 /** |
| 121 * This value indicates failure due to lack of a user gesture such as a | 132 * This value indicates failure due to lack of a user gesture such as a |
| 122 * mouse click or key input event. Examples of actions requiring a user | 133 * mouse click or key input event. Examples of actions requiring a user |
| (...skipping 19 matching lines...) Expand all Loading... |
| 142 PP_ERROR_WRONG_THREAD = -52, | 153 PP_ERROR_WRONG_THREAD = -52, |
| 143 /** | 154 /** |
| 144 * Indicates that a null completion callback was used on a thread handling a | 155 * Indicates that a null completion callback was used on a thread handling a |
| 145 * blocking message from JavaScript. Null completion callbacks "block until | 156 * blocking message from JavaScript. Null completion callbacks "block until |
| 146 * complete", which could cause the main JavaScript thread to be blocked | 157 * complete", which could cause the main JavaScript thread to be blocked |
| 147 * excessively. | 158 * excessively. |
| 148 */ | 159 */ |
| 149 PP_ERROR_WOULD_BLOCK_THREAD = -53, | 160 PP_ERROR_WOULD_BLOCK_THREAD = -53, |
| 150 | 161 |
| 151 /** | 162 /** |
| 163 * This value indicates that the provided url is malformed |
| 164 */ |
| 165 PP_ERROR_INVALID_URL = -99, |
| 166 /** |
| 152 * This value indicates that the connection was closed. For TCP sockets, it | 167 * This value indicates that the connection was closed. For TCP sockets, it |
| 153 * corresponds to a TCP FIN. | 168 * corresponds to a TCP FIN. |
| 154 */ | 169 */ |
| 155 PP_ERROR_CONNECTION_CLOSED = -100, | 170 PP_ERROR_CONNECTION_CLOSED = -100, |
| 156 /** | 171 /** |
| 157 * This value indicates that the connection was reset. For TCP sockets, it | 172 * This value indicates that the connection was reset. For TCP sockets, it |
| 158 * corresponds to a TCP RST. | 173 * corresponds to a TCP RST. |
| 159 */ | 174 */ |
| 160 PP_ERROR_CONNECTION_RESET = -101, | 175 PP_ERROR_CONNECTION_RESET = -101, |
| 161 /** | 176 /** |
| (...skipping 30 matching lines...) Expand all Loading... |
| 192 PP_ERROR_ADDRESS_IN_USE = -108, | 207 PP_ERROR_ADDRESS_IN_USE = -108, |
| 193 /** | 208 /** |
| 194 * This value indicates that the message was too large for the transport. | 209 * This value indicates that the message was too large for the transport. |
| 195 */ | 210 */ |
| 196 PP_ERROR_MESSAGE_TOO_BIG = -109, | 211 PP_ERROR_MESSAGE_TOO_BIG = -109, |
| 197 /** | 212 /** |
| 198 * This value indicates that the host name could not be resolved. | 213 * This value indicates that the host name could not be resolved. |
| 199 */ | 214 */ |
| 200 PP_ERROR_NAME_NOT_RESOLVED = -110 | 215 PP_ERROR_NAME_NOT_RESOLVED = -110 |
| 201 }; | 216 }; |
| 202 | |
| OLD | NEW |