summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 18:16:08 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 18:16:08 +0000
commit97ef11550571677c7793ff383935901fb009309f (patch)
treed9f6eb605707464eeb87eb685a71172fc2987816 /chrome/renderer
parent9e591cb392ccd0b5fbb0fd95fde5c28783a2727e (diff)
downloadchromium_src-97ef11550571677c7793ff383935901fb009309f.zip
chromium_src-97ef11550571677c7793ff383935901fb009309f.tar.gz
chromium_src-97ef11550571677c7793ff383935901fb009309f.tar.bz2
Move the java channel code to content. As discussed, we don't want to expose the plugin and npobject internals to embedders.
BUG=98716 Review URL: http://codereview.chromium.org/8317010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/java_bridge_channel.cc29
-rw-r--r--chrome/renderer/java_bridge_channel.h33
2 files changed, 0 insertions, 62 deletions
diff --git a/chrome/renderer/java_bridge_channel.cc b/chrome/renderer/java_bridge_channel.cc
deleted file mode 100644
index 5c2392e..0000000
--- a/chrome/renderer/java_bridge_channel.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/renderer/java_bridge_channel.h"
-
-#include "content/common/child_process.h"
-
-JavaBridgeChannel* JavaBridgeChannel::GetJavaBridgeChannel(
- const IPC::ChannelHandle& channel_handle,
- base::MessageLoopProxy* ipc_message_loop) {
- return static_cast<JavaBridgeChannel*>(NPChannelBase::GetChannel(
- channel_handle,
- IPC::Channel::MODE_CLIENT,
- ClassFactory,
- ipc_message_loop,
- true,
- ChildProcess::current()->GetShutDownEvent()));
-}
-
-int JavaBridgeChannel::GenerateRouteID() {
- NOTREACHED() << "Java Bridge only creates object stubs in the browser.";
- return -1;
-}
-
-bool JavaBridgeChannel::OnMessageReceived(const IPC::Message& msg) {
- NOTREACHED() << "Java Bridge only sends messages from renderer to browser.";
- return false;
-}
diff --git a/chrome/renderer/java_bridge_channel.h b/chrome/renderer/java_bridge_channel.h
deleted file mode 100644
index eaab675..0000000
--- a/chrome/renderer/java_bridge_channel.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_JAVA_BRIDGE_CHANNEL_H_
-#define CHROME_RENDERER_JAVA_BRIDGE_CHANNEL_H_
-#pragma once
-
-#include "content/common/np_channel_base.h"
-#include "ipc/ipc_channel_handle.h"
-
-class JavaBridgeChannel : public NPChannelBase {
- public:
- static JavaBridgeChannel* GetJavaBridgeChannel(
- const IPC::ChannelHandle& channel_handle,
- base::MessageLoopProxy* ipc_message_loop);
- virtual ~JavaBridgeChannel() {}
-
- // NPChannelBase implementation:
- virtual int GenerateRouteID() OVERRIDE;
-
- // NPChannelBase override:
- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
-
- private:
- JavaBridgeChannel() {}
-
- static NPChannelBase* ClassFactory() { return new JavaBridgeChannel(); }
-
- DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannel);
-};
-
-#endif // CHROME_RENDERER_JAVA_BRIDGE_CHANNEL_H_