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

Unified 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: try to improve comment Created 6 years, 3 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/pp_errors.idl
diff --git a/ppapi/api/pp_errors.idl b/ppapi/api/pp_errors.idl
index 2d958ecaeeb0d4c9e5bd22b7880e5b38fd0f9b50..b17e87c73ee1326751f9b717332296a3f6c7a981 100644
--- a/ppapi/api/pp_errors.idl
+++ b/ppapi/api/pp_errors.idl
@@ -140,6 +140,13 @@
* thread.
*/
PP_ERROR_WRONG_THREAD = -52,
+ /**
+ * Indicates that a null completion callback was used on a thread handling a
+ * blocking message from JavaScript. Null completion callbacks "block until
+ * complete", which could cause the main JavaScript thread to be blocked
+ * excessively.
+ */
+ PP_ERROR_WOULD_BLOCK_THREAD = -53,
/**
* This value indicates that the connection was closed. For TCP sockets, it
« 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