Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: ppapi/c/pp_errors.h

Issue 600553002: PPAPI: Disallow blocking callbacks while handling a blocking message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698