/* Copyright 2014 The Chromium Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* From ppp_message_handler.idl modified Wed Sep 24 10:48:49 2014. */ #ifndef PPAPI_C_PPP_MESSAGE_HANDLER_H_ #define PPAPI_C_PPP_MESSAGE_HANDLER_H_ #include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_macros.h" #include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_var.h" /** * @file * This file defines the <code>PPP_MessageHandler</code> interface that plugins * can implement and register using PPB_Messaging::RegisterMessageHandler in * order to handle messages sent from JavaScript via postMessage() or * postMessageAndAwaitResponse(). */ /** * @addtogroup Interfaces * @{ */ /** * The <code>PPP_MessageHandler</code> interface is implemented by the plugin * if the plugin wants to receive messages from a thread other than the main * Pepper thread, or if the plugin wants to handle blocking messages which * JavaScript may send via postMessageAndAwaitResponse(). * * This interface struct should not be returned by PPP_GetInterface; instead it * must be passed as a parameter to PPB_Messaging::RegisterMessageHandler. */ struct PPP_MessageHandler_0_2 { … }; PPP_MessageHandler; /** * @} */ #endif /* PPAPI_C_PPP_MESSAGE_HANDLER_H_ */