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

Unified Diff: ppapi/api/ppp_message_handler.idl

Issue 318763003: PPAPI: Add C++ wrapper for MessageHandler stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move messag_handler.h to HEADERS section of library.dsc 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 | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | ppapi/c/ppp_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppp_message_handler.idl
diff --git a/ppapi/api/ppp_message_handler.idl b/ppapi/api/ppp_message_handler.idl
index e898f0b5971f1b5c530d8fb31c5557dac044452d..7d760401a3bf0ee48461b2b0a8ccd21d86485ef2 100644
--- a/ppapi/api/ppp_message_handler.idl
+++ b/ppapi/api/ppp_message_handler.idl
@@ -32,7 +32,7 @@ interface PPP_MessageHandler {
* @param[in] instance A <code>PP_Instance</code> identifying one instance
* of a module.
* @param[in] user_data is the same pointer which was provided by a call to
- * RegisterMessageHandler.
+ * RegisterMessageHandler().
* @param[in] message A copy of the parameter that JavaScript provided to
* postMessage().
*/
@@ -43,14 +43,19 @@ interface PPP_MessageHandler {
* Invoked as a result of JavaScript invoking postMessageAndAwaitResponse()
* on the plugin's DOM element.
*
+ * NOTE: JavaScript execution is blocked during the duration of this call.
+ * Hence, the plugin should respond as quickly as possible. For this reason,
+ * blocking completion callbacks are disallowed while handling a blocking
+ * message.
+ *
* @param[in] instance A <code>PP_Instance</code> identifying one instance
* of a module.
* @param[in] user_data is the same pointer which was provided by a call to
- * RegisterMessageHandler.
+ * RegisterMessageHandler().
* @param[in] message is a copy of the parameter that JavaScript provided
- * to postMessageAndAwaitResponse.
+ * to postMessageAndAwaitResponse().
* @param[out] response will be copied to a JavaScript object which is
- * returned as the result of postMessageAndAwaitResponse to the invoking
+ * returned as the result of postMessageAndAwaitResponse() to the invoking
JavaScript.
*/
void HandleBlockingMessage([in] PP_Instance instance,
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | ppapi/c/ppp_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698