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

Unified Diff: ppapi/thunk/ppb_instance_api.h

Issue 252023009: PPAPI: Add dev synchronous JS->Plugin messaging API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use channel=dev instead of none Created 6 years, 7 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/tests/all_c_includes.h ('k') | ppapi/thunk/ppb_messaging_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_instance_api.h
diff --git a/ppapi/thunk/ppb_instance_api.h b/ppapi/thunk/ppb_instance_api.h
index db73979e4e56c5ff1932e3f5d1146d2f73a7fcd7..39ea9e440e600a351c5054f62a0f0c63216a49be 100644
--- a/ppapi/thunk/ppb_instance_api.h
+++ b/ppapi/thunk/ppb_instance_api.h
@@ -30,6 +30,7 @@
struct PP_DecryptedBlockInfo;
struct PP_DecryptedFrameInfo;
+struct PPP_MessageHandler_0_1;
namespace ppapi {
@@ -114,6 +115,11 @@ class PPB_Instance_API {
// Messaging.
virtual void PostMessage(PP_Instance instance, PP_Var message) = 0;
+ virtual int32_t RegisterMessageHandler(PP_Instance instance,
+ void* user_data,
+ const PPP_MessageHandler_0_1* handler,
+ PP_Resource message_loop) = 0;
+ virtual void UnregisterMessageHandler(PP_Instance instance) = 0;
// Mouse cursor.
virtual PP_Bool SetCursor(PP_Instance instance,
« no previous file with comments | « ppapi/tests/all_c_includes.h ('k') | ppapi/thunk/ppb_messaging_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698