diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-28 04:14:38 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-28 04:14:38 +0000 |
commit | f524c8338cdaf1aaab6e210584c069548f246ed5 (patch) | |
tree | c66c83139b7bd21cbd1f52f159d8e544734eafa7 /ppapi/proxy | |
parent | 1a46fa6ed3e1acb03a6d05f63c09b06129c8a639 (diff) | |
download | chromium_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/proxy')
-rw-r--r-- | ppapi/proxy/ppb_audio_input_proxy.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ppapi/proxy/ppb_audio_input_proxy.cc b/ppapi/proxy/ppb_audio_input_proxy.cc index 79d6eba..32aa6b7 100644 --- a/ppapi/proxy/ppb_audio_input_proxy.cc +++ b/ppapi/proxy/ppb_audio_input_proxy.cc @@ -33,9 +33,10 @@ class AudioInput : public PPB_AudioInput_Shared { virtual ~AudioInput(); // Implementation of PPB_AudioInput_API trusted methods. - virtual int32_t OpenTrusted(const std::string& device_id, - PP_Resource config, - PP_CompletionCallback create_callback) OVERRIDE; + virtual int32_t OpenTrusted( + const std::string& device_id, + PP_Resource config, + const PP_CompletionCallback& create_callback) OVERRIDE; virtual int32_t GetSyncSocket(int* sync_socket) OVERRIDE; virtual int32_t GetSharedMemory(int* shm_handle, uint32_t* shm_size) OVERRIDE; virtual const std::vector<DeviceRefData>& GetDeviceRefData() const OVERRIDE; @@ -70,7 +71,7 @@ AudioInput::~AudioInput() { int32_t AudioInput::OpenTrusted(const std::string& device_id, PP_Resource config, - PP_CompletionCallback create_callback) { + const PP_CompletionCallback& create_callback) { return PP_ERROR_NOTSUPPORTED; // Don't proxy the trusted interface. } |