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

Unified Diff: ppapi/c/pp_completion_callback.h

Issue 6656016: Add some more documentation from a recent ppapi discussion.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « no previous file | ppapi/c/ppb_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/pp_completion_callback.h
===================================================================
--- ppapi/c/pp_completion_callback.h (revision 77300)
+++ ppapi/c/pp_completion_callback.h (working copy)
@@ -32,10 +32,14 @@
/**
* Any method that takes a PP_CompletionCallback has the option of completing
* asynchronously if the operation would block. Such a method should return
- * PP_Error_WouldBlock to indicate when the method will complete
- * asynchronously. If the completion callback is NULL, then the operation will
- * block if necessary to complete its work. PP_BlockUntilComplete() provides a
- * convenient way to specify blocking behavior.
+ * PP_ERROR_WOULDBLOCK to indicate when the method will complete
brettw 2011/03/10 18:36:21 when -> that
+ * asynchronously. In this case it will signal completion by invoking the
+ * supplied completion callback, which will always be invoked from the main
+ * PPAPI thread of execution. If the method returns any other value,
+ * including PP_OK, the completion callback will not be invoked. If the
+ * completion callback is NULL, then the method will block if necessary to
+ * complete its work. PP_BlockUntilComplete() provides a convenient way to
+ * specify blocking behavior.
*
* The result parameter passes an int32_t that if negative indicates an error
* code. Otherwise the result value indicates success. If it is a positive
« no previous file with comments | « no previous file | ppapi/c/ppb_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698