Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
|
The C++ interface to the Pepper API. More...
Enumerations | |
enum | PassRef { PASS_REF } |
Functions | |
template<typename ResourceObjectType > | |
void | ConvertPPResourceArrayToObjects (PassRef, const std::vector< PP_Resource > &input, std::vector< ResourceObjectType > *output) |
CompletionCallback | BlockUntilComplete () |
pp::Module * | CreateModule () |
void | SetBrokerGetInterfaceFunc (PP_GetInterface_Func broker_get_interface) |
The C++ interface to the Pepper API.
The C++ interface to the Pepper API.
enum pp::PassRef |
An annotation for constructors and other functions that take ownership of a pointer. For example, a resource constructor that takes ownership of a provided PP_Resource
ref count would take this enumeration to differentiate from the more typical use case of taking its own reference.
|
inline |
BlockUntilComplete() is used in place of an actual completion callback to request blocking behavior. If specified, the calling thread will block until the function completes. Blocking completion callbacks are only allowed from background threads.
CompletionCallback
corresponding to a NULL callback. pp::Module* pp::CreateModule | ( | ) |
This function creates the pp::Module
object associated with this module.
Note: NaCl module developers must implement this function.
void pp::SetBrokerGetInterfaceFunc | ( | PP_GetInterface_Func | broker_get_interface | ) |
Sets the get interface function in the broker process.
This function is only relevant when you're using the PPB_Broker interface in a trusted native plugin. In this case, you may need to implement PPP_GetInterface when the plugin is loaded in the unsandboxed process. Normally the C++ wrappers implement PPP_GetInterface for you but this doesn't work in the context of the broker process. So if you need to implement PPP_* interfaces in the broker process, call this function in your PPP_InitializeBroker implementation which will set up the given function as implementing PPP_GetInterface.