diff options
author | zork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-19 18:42:46 +0000 |
---|---|---|
committer | zork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-19 18:42:46 +0000 |
commit | 0cb21b0739018fbc095dd0f1a47aacde20b79ec1 (patch) | |
tree | 0b417fa9623f4a1783ea7e850e5302cb43dcfa0c /chrome/common/chrome_plugin_api.h | |
parent | 848cd05ed947f5939df4cd6028aad4e068484c23 (diff) | |
download | chromium_src-0cb21b0739018fbc095dd0f1a47aacde20b79ec1.zip chromium_src-0cb21b0739018fbc095dd0f1a47aacde20b79ec1.tar.gz chromium_src-0cb21b0739018fbc095dd0f1a47aacde20b79ec1.tar.bz2 |
Adding a CPAPI function to make a function call asynchonously on the plugin thread.
Review URL: http://codereview.chromium.org/2969
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_plugin_api.h')
-rw-r--r-- | chrome/common/chrome_plugin_api.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/chrome_plugin_api.h b/chrome/common/chrome_plugin_api.h index 278787c..14a54e5 100644 --- a/chrome/common/chrome_plugin_api.h +++ b/chrome/common/chrome_plugin_api.h @@ -30,7 +30,7 @@ extern "C" { // The current version of the API, used by the 'version' field of CPPluginFuncs // and CPBrowserFuncs. #define CP_MAJOR_VERSION 0 -#define CP_MINOR_VERSION 7 +#define CP_MINOR_VERSION 8 #define CP_VERSION ((CP_MAJOR_VERSION << 8) | (CP_MINOR_VERSION)) #define CP_GET_MAJOR_VERSION(version) ((version & 0xff00) >> 8) @@ -384,6 +384,12 @@ typedef CPError (STDCALL *CPB_SendSyncMessageFunc)(CPID id, void **retval, uint32 *retval_len); +// This function asynchronously calls the provided function on the plugin +// thread. user_data is passed as the argument to the function. +typedef CPError (STDCALL *CPB_PluginThreadAsyncCallFunc)(CPID id, + void (*func)(void *), + void *user_data); + // Informs the plugin of raw data having been sent from another process. typedef void (STDCALL *CPP_OnMessageFunc)(void *data, uint32 data_len); @@ -462,6 +468,7 @@ typedef struct _CPBrowserFuncs { CPB_AddUICommandFunc add_ui_command; CPB_HandleCommandFunc handle_command; CPB_SendSyncMessageFunc send_sync_message; + CPB_PluginThreadAsyncCallFunc plugin_thread_async_call; } CPBrowserFuncs; |