summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk
diff options
context:
space:
mode:
authortbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 04:14:38 +0000
committertbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 04:14:38 +0000
commitf524c8338cdaf1aaab6e210584c069548f246ed5 (patch)
treec66c83139b7bd21cbd1f52f159d8e544734eafa7 /ppapi/thunk
parent1a46fa6ed3e1acb03a6d05f63c09b06129c8a639 (diff)
downloadchromium_src-f524c8338cdaf1aaab6e210584c069548f246ed5.zip
chromium_src-f524c8338cdaf1aaab6e210584c069548f246ed5.tar.gz
chromium_src-f524c8338cdaf1aaab6e210584c069548f246ed5.tar.bz2
Pass PP_CompletionCallback by reference
CID=103456,103502,103503 BUG=none TEST=none Review URL: http://codereview.chromium.org/9861034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r--ppapi/thunk/ppb_audio_input_api.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ppapi/thunk/ppb_audio_input_api.h b/ppapi/thunk/ppb_audio_input_api.h
index 68c8b94..38e94ef 100644
--- a/ppapi/thunk/ppb_audio_input_api.h
+++ b/ppapi/thunk/ppb_audio_input_api.h
@@ -22,22 +22,24 @@ class PPAPI_THUNK_EXPORT PPB_AudioInput_API {
public:
virtual ~PPB_AudioInput_API() {}
- virtual int32_t EnumerateDevices(PP_Resource* devices,
- PP_CompletionCallback callback) = 0;
+ virtual int32_t EnumerateDevices(
+ PP_Resource* devices,
+ const PP_CompletionCallback& callback) = 0;
virtual int32_t Open(const std::string& device_id,
PP_Resource config,
PPB_AudioInput_Callback audio_input_callback,
void* user_data,
- PP_CompletionCallback callback) = 0;
+ const PP_CompletionCallback& callback) = 0;
virtual PP_Resource GetCurrentConfig() = 0;
virtual PP_Bool StartCapture() = 0;
virtual PP_Bool StopCapture() = 0;
virtual void Close() = 0;
// Trusted API.
- virtual int32_t OpenTrusted(const std::string& device_id,
- PP_Resource config,
- PP_CompletionCallback create_callback) = 0;
+ virtual int32_t OpenTrusted(
+ const std::string& device_id,
+ PP_Resource config,
+ const 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;
virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0;