|
Pepper_42_C_interfaces
|
#include <pp_completion_callback.h>

Public Attributes | |
| PP_CompletionCallback_Func | func |
| void * | user_data |
| int32_t | flags |
PP_CompletionCallback is a common mechanism for supporting potentially asynchronous calls in browser interfaces. Any method that takes a PP_CompletionCallback can be used in one of three different ways:
PP_BlockUntilComplete() provides a convenient way to specify blocking behavior. Refer to PP_BlockUntilComplete for more information.When the callback is run asynchronously, the result parameter passed to func is an int32_t that, if negative indicates an error code whose meaning is specific to the calling method (refer to pp_error.h for further information). A positive or 0 value is a return result indicating success whose meaning depends on the calling method (e.g. number of bytes read).
Definition at line 139 of file pp_completion_callback.h.
| int32_t PP_CompletionCallback::flags |
Flags used to control how non-NULL callbacks are scheduled by asynchronous methods.
Definition at line 153 of file pp_completion_callback.h.
Referenced by PP_MakeCompletionCallback(), and PP_MakeOptionalCompletionCallback().
| PP_CompletionCallback_Func PP_CompletionCallback::func |
This value is a callback function that will be called, or NULL if this is a blocking completion callback.
Definition at line 144 of file pp_completion_callback.h.
Referenced by PP_MakeCompletionCallback(), PP_MakeOptionalCompletionCallback(), and PP_RunCompletionCallback().
| void* PP_CompletionCallback::user_data |
This value is a pointer to user data passed to a callback function.
Definition at line 148 of file pp_completion_callback.h.
Referenced by PP_MakeCompletionCallback(), PP_MakeOptionalCompletionCallback(), and PP_RunCompletionCallback().
1.8.6