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

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: try to improve comment 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
« no previous file with comments | « ppapi/api/pp_errors.idl ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15:37:27 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 * 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,
150 /**
144 * This value indicates that the connection was closed. For TCP sockets, it 151 * This value indicates that the connection was closed. For TCP sockets, it
145 * corresponds to a TCP FIN. 152 * corresponds to a TCP FIN.
146 */ 153 */
147 PP_ERROR_CONNECTION_CLOSED = -100, 154 PP_ERROR_CONNECTION_CLOSED = -100,
148 /** 155 /**
149 * This value indicates that the connection was reset. For TCP sockets, it 156 * This value indicates that the connection was reset. For TCP sockets, it
150 * corresponds to a TCP RST. 157 * corresponds to a TCP RST.
151 */ 158 */
152 PP_ERROR_CONNECTION_RESET = -101, 159 PP_ERROR_CONNECTION_RESET = -101,
153 /** 160 /**
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 * This value indicates that the host name could not be resolved. 197 * This value indicates that the host name could not be resolved.
191 */ 198 */
192 PP_ERROR_NAME_NOT_RESOLVED = -110 199 PP_ERROR_NAME_NOT_RESOLVED = -110
193 }; 200 };
194 /** 201 /**
195 * @} 202 * @}
196 */ 203 */
197 204
198 #endif /* PPAPI_C_PP_ERRORS_H_ */ 205 #endif /* PPAPI_C_PP_ERRORS_H_ */
199 206
OLDNEW
« no previous file with comments | « ppapi/api/pp_errors.idl ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698