This source file includes following definitions.
- GetIPCMessageLoop
- GetShutdownEvent
- ShareHandleWithRemote
#include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h"
#include "content/child/child_process.h"
#include "content/common/sandbox_util.h"
namespace content {
PepperProxyChannelDelegateImpl::~PepperProxyChannelDelegateImpl() {
}
base::MessageLoopProxy* PepperProxyChannelDelegateImpl::GetIPCMessageLoop() {
DCHECK(ChildProcess::current()) << "Must be in the renderer.";
return ChildProcess::current()->io_message_loop_proxy();
}
base::WaitableEvent* PepperProxyChannelDelegateImpl::GetShutdownEvent() {
DCHECK(ChildProcess::current()) << "Must be in the renderer.";
return ChildProcess::current()->GetShutDownEvent();
}
IPC::PlatformFileForTransit
PepperProxyChannelDelegateImpl::ShareHandleWithRemote(
base::PlatformFile handle,
base::ProcessId remote_pid,
bool should_close_source) {
return BrokerGetFileHandleForProcess(handle, remote_pid,
should_close_source);
}
}