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

Side by Side Diff: ppapi/api/pp_errors.idl

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
« no previous file with comments | « mojo/examples/pepper_container_app/mojo_ppapi_globals.cc ('k') | ppapi/c/pp_errors.h » ('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 /** 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
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 * Returned if you try to use a null completion callback to "block until
teravest 2014/09/23 20:23:01 nit: This doesn't seem consistent with the style o
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,
143 151
144 /** 152 /**
145 * This value indicates that the connection was closed. For TCP sockets, it 153 * This value indicates that the connection was closed. For TCP sockets, it
146 * corresponds to a TCP FIN. 154 * corresponds to a TCP FIN.
147 */ 155 */
148 PP_ERROR_CONNECTION_CLOSED = -100, 156 PP_ERROR_CONNECTION_CLOSED = -100,
149 /** 157 /**
150 * This value indicates that the connection was reset. For TCP sockets, it 158 * This value indicates that the connection was reset. For TCP sockets, it
151 * corresponds to a TCP RST. 159 * corresponds to a TCP RST.
152 */ 160 */
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 /** 194 /**
187 * This value indicates that the message was too large for the transport. 195 * This value indicates that the message was too large for the transport.
188 */ 196 */
189 PP_ERROR_MESSAGE_TOO_BIG = -109, 197 PP_ERROR_MESSAGE_TOO_BIG = -109,
190 /** 198 /**
191 * This value indicates that the host name could not be resolved. 199 * This value indicates that the host name could not be resolved.
192 */ 200 */
193 PP_ERROR_NAME_NOT_RESOLVED = -110 201 PP_ERROR_NAME_NOT_RESOLVED = -110
194 }; 202 };
195 203
OLDNEW
« no previous file with comments | « mojo/examples/pepper_container_app/mojo_ppapi_globals.cc ('k') | ppapi/c/pp_errors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698