1 // Copyright (c) 2011 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.
5 #include "chrome/renderer/java_bridge_channel.h"
7 #include "content/common/child_process.h"
9 JavaBridgeChannel
* JavaBridgeChannel::GetJavaBridgeChannel(
10 const IPC::ChannelHandle
& channel_handle
,
11 base::MessageLoopProxy
* ipc_message_loop
) {
12 return static_cast<JavaBridgeChannel
*>(NPChannelBase::GetChannel(
14 IPC::Channel::MODE_CLIENT
,
18 ChildProcess::current()->GetShutDownEvent()));
21 int JavaBridgeChannel::GenerateRouteID() {
22 NOTREACHED() << "Java Bridge only creates object stubs in the browser.";
26 bool JavaBridgeChannel::OnMessageReceived(const IPC::Message
& msg
) {
27 NOTREACHED() << "Java Bridge only sends messages from renderer to browser.";