From 06417271819fc46ae45a76ed0d2e2bb18b5dad01 Mon Sep 17 00:00:00 2001 From: "nfullagar@google.com" Date: Thu, 25 Nov 2010 00:29:25 +0000 Subject: changes for proxy audio - includes Darin's changes to move StreamCreated() to main thread - callback for delivering handles to proxy - changes to trusted interface BUG=none TEST=chrome/src/ppapi/examples/audio/audio.cc Review URL: http://codereview.chromium.org/5202002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67354 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/plugins/pepper_audio.cc | 153 +++++++++++++++++++++++---- webkit/glue/plugins/pepper_audio.h | 32 +++++- webkit/glue/plugins/pepper_plugin_delegate.h | 5 +- 3 files changed, 161 insertions(+), 29 deletions(-) (limited to 'webkit/glue/plugins') diff --git a/webkit/glue/plugins/pepper_audio.cc b/webkit/glue/plugins/pepper_audio.cc index d98ef1b..1731d8a 100644 --- a/webkit/glue/plugins/pepper_audio.cc +++ b/webkit/glue/plugins/pepper_audio.cc @@ -7,6 +7,7 @@ #include "base/logging.h" #include "ppapi/c/dev/ppb_audio_dev.h" #include "ppapi/c/dev/ppb_audio_trusted_dev.h" +#include "ppapi/c/pp_completion_callback.h" #include "webkit/glue/plugins/pepper_common.h" namespace pepper { @@ -77,13 +78,15 @@ const PPB_AudioConfig_Dev ppb_audioconfig = { // PPB_Audio ------------------------------------------------------------------- PP_Resource Create(PP_Instance instance_id, PP_Resource config_id, - PPB_Audio_Callback callback, void* user_data) { + PPB_Audio_Callback user_callback, void* user_data) { PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id); if (!instance) return 0; - // TODO(neb): Require callback to be present for untrusted plugins. - scoped_refptr