summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_audio_proxy.cc
diff options
context:
space:
mode:
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 13:24:23 +0000
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 13:24:23 +0000
commit68ca863f9323a1ab2d02545f893f34a1e58a1a3f (patch)
treed2c2a910fcdd242ca70815bba3be4f9420cd0df7 /ppapi/proxy/ppb_audio_proxy.cc
parent6ecc9adc9370980d134c5e3591a27712ed8f8932 (diff)
downloadchromium_src-68ca863f9323a1ab2d02545f893f34a1e58a1a3f.zip
chromium_src-68ca863f9323a1ab2d02545f893f34a1e58a1a3f.tar.gz
chromium_src-68ca863f9323a1ab2d02545f893f34a1e58a1a3f.tar.bz2
Change NaCl IPC PPAPI proxy startup to support a NaCl-Browser process
channel. NaClProcessHost now creates an initial NaCl-Browser channel, then uses it to send a message to create the NaCl-Renderer channel. The main() for the IPC-IRT creates a PpapiDispatcher object to manage this channel and manage the PluginDispatchers for each renderer. BUG=116317 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10883047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_audio_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_audio_proxy.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/ppapi/proxy/ppb_audio_proxy.cc b/ppapi/proxy/ppb_audio_proxy.cc
index bc83be3..2bd5c89 100644
--- a/ppapi/proxy/ppb_audio_proxy.cc
+++ b/ppapi/proxy/ppb_audio_proxy.cc
@@ -26,6 +26,7 @@
#include "ppapi/thunk/thunk.h"
using ppapi::IntToPlatformFile;
+using ppapi::proxy::SerializedHandle;
using ppapi::thunk::EnterResourceNoLock;
using ppapi::thunk::PPB_Audio_API;
using ppapi::thunk::PPB_AudioConfig_API;
@@ -253,14 +254,14 @@ void PPB_Audio_Proxy::AudioChannelConnected(
// inconvenient to clean up. Our IPC code will automatically handle this for
// us, as long as the remote side always closes the handles it receives
// (in OnMsgNotifyAudioStreamCreated), even in the failure case.
- ppapi::proxy::SerializedHandle fd_wrapper(socket_handle);
+ SerializedHandle fd_wrapper(SerializedHandle::SOCKET, socket_handle);
// Note that we must call TotalSharedMemorySizeInBytes because
// Audio allocates extra space in shared memory for book-keeping, so the
// actual size of the shared memory buffer is larger than audio_buffer_length.
// When sending to NaCl, NaClIPCAdapter expects this size to match the size
// of the full shared memory buffer.
- ppapi::proxy::SerializedHandle handle_wrapper(
+ SerializedHandle handle_wrapper(
shared_memory,
media::TotalSharedMemorySizeInBytes(audio_buffer_length));
dispatcher()->Send(new PpapiMsg_PPBAudio_NotifyAudioStreamCreated(
@@ -309,8 +310,8 @@ int32_t PPB_Audio_Proxy::GetAudioConnectedHandles(
void PPB_Audio_Proxy::OnMsgNotifyAudioStreamCreated(
const HostResource& audio_id,
int32_t result_code,
- ppapi::proxy::SerializedHandle socket_handle,
- ppapi::proxy::SerializedHandle handle) {
+ SerializedHandle socket_handle,
+ SerializedHandle handle) {
CHECK(socket_handle.is_socket());
CHECK(handle.is_shmem());
EnterPluginFromHostResource<PPB_Audio_API> enter(audio_id);