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

Unified Diff: ppapi/c/ppp_message_handler.h

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 | « ppapi/api/ppp_message_handler.idl ('k') | ppapi/cpp/instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppp_message_handler.h
diff --git a/ppapi/c/ppp_message_handler.h b/ppapi/c/ppp_message_handler.h
index 2b1a0dbddd17a7a3da38f79785583eaea8bc8928..b73ecb74890e739ce5b1e6703e1b07f4c32875a1 100644
--- a/ppapi/c/ppp_message_handler.h
+++ b/ppapi/c/ppp_message_handler.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppp_message_handler.idl modified Wed Sep 10 17:04:21 2014. */
+/* From ppp_message_handler.idl modified Wed Sep 17 16:54:35 2014. */
#ifndef PPAPI_C_PPP_MESSAGE_HANDLER_H_
#define PPAPI_C_PPP_MESSAGE_HANDLER_H_
@@ -44,7 +44,7 @@ struct PPP_MessageHandler_0_2 { /* dev */
* @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().
*/
@@ -55,14 +55,19 @@ struct PPP_MessageHandler_0_2 { /* dev */
* 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
*
*/
void (*HandleBlockingMessage)(PP_Instance instance,
« no previous file with comments | « ppapi/api/ppp_message_handler.idl ('k') | ppapi/cpp/instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698