1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/nacl/renderer/trusted_plugin_channel.h" 6 7 #include "base/callback_helpers.h" 8 #include "content/public/renderer/render_thread.h" 9 #include "ipc/ipc_channel_proxy.h" 10 #include "ppapi/c/pp_errors.h" 11 12 namespace nacl { 13 14 TrustedPluginChannel::TrustedPluginChannel( 15 const IPC::ChannelHandle& handle) { 16 channel_proxy_ = IPC::ChannelProxy::Create( 17 handle, 18 IPC::Channel::MODE_CLIENT, 19 this, 20 content::RenderThread::Get()->GetIOMessageLoopProxy()).Pass(); 21 } 22 23 TrustedPluginChannel::~TrustedPluginChannel() { 24 } 25 26 bool TrustedPluginChannel::Send(IPC::Message* message) { 27 return channel_proxy_->Send(message); 28 } 29 30 bool TrustedPluginChannel::OnMessageReceived(const IPC::Message& message) { 31 return false; 32 } 33 34 } // namespace nacl 35