summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_audio_api.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 20:52:20 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 20:52:20 +0000
commit0609474310417da4a2235d85639aa387a8df0a6b (patch)
tree15f7ce49d32bfd832e65d6f015db5ae70607c6a9 /ppapi/thunk/ppb_audio_api.h
parent7efc582d60227aa473c77c3309a96b2dfed52351 (diff)
downloadchromium_src-0609474310417da4a2235d85639aa387a8df0a6b.zip
chromium_src-0609474310417da4a2235d85639aa387a8df0a6b.tar.gz
chromium_src-0609474310417da4a2235d85639aa387a8df0a6b.tar.bz2
Add a template to handle properly issuing completion callbacks. This fixes
some bugs where we forgot to issue completion callbacks in some error cases in the proxy, and cleans up the cases that were already doing this properly. This removes the PPB_AudioTrusted_API and folds those functions into the regular Audio API. I'm trying to merge more things to have a smaller explosion of APIs and the boilerplate associated with them. Review URL: http://codereview.chromium.org/7551032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_audio_api.h')
-rw-r--r--ppapi/thunk/ppb_audio_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/thunk/ppb_audio_api.h b/ppapi/thunk/ppb_audio_api.h
index d105e1c..3d21299 100644
--- a/ppapi/thunk/ppb_audio_api.h
+++ b/ppapi/thunk/ppb_audio_api.h
@@ -5,6 +5,7 @@
#ifndef PPAPI_THUNK_AUDIO_API_H_
#define PPAPI_THUNK_AUDIO_API_H_
+#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/ppb_audio.h"
namespace ppapi {
@@ -17,6 +18,12 @@ class PPB_Audio_API {
virtual PP_Resource GetCurrentConfig() = 0;
virtual PP_Bool StartPlayback() = 0;
virtual PP_Bool StopPlayback() = 0;
+
+ // Trusted API.
+ virtual int32_t OpenTrusted(PP_Resource config_id,
+ PP_CompletionCallback create_callback) = 0;
+ virtual int32_t GetSyncSocket(int* sync_socket) = 0;
+ virtual int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size) = 0;
};
} // namespace thunk