summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/npobject_stub.cc
diff options
context:
space:
mode:
authorjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 22:29:33 +0000
committerjaphet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 22:29:33 +0000
commit8275d865da70a68992560db2a5d65bf1b9fa8f56 (patch)
tree7326a9c416ba2f0a0e3a50ce6ad58693e7ba7c46 /chrome/plugin/npobject_stub.cc
parent91fce0c025e0ff1516d1a8ea762bc4eab326b8de (diff)
downloadchromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.zip
chromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.tar.gz
chromium_src-8275d865da70a68992560db2a5d65bf1b9fa8f56.tar.bz2
If an NP_* function is called on an out of process plugin, save enough info to send an NPN_SetException back to the correct renderer if necessary. BUG=26764 TEST=none
Review URL: http://codereview.chromium.org/375005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/npobject_stub.cc')
-rw-r--r--chrome/plugin/npobject_stub.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/plugin/npobject_stub.cc b/chrome/plugin/npobject_stub.cc
index 4fe7e77..a23f2dc 100644
--- a/chrome/plugin/npobject_stub.cc
+++ b/chrome/plugin/npobject_stub.cc
@@ -81,7 +81,6 @@ void NPObjectStub::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(NPObjectMsg_Enumeration, OnEnumeration);
IPC_MESSAGE_HANDLER_DELAY_REPLY(NPObjectMsg_Construct, OnConstruct);
IPC_MESSAGE_HANDLER_DELAY_REPLY(NPObjectMsg_Evaluate, OnEvaluate);
- IPC_MESSAGE_HANDLER(NPObjectMsg_SetException, OnSetException);
IPC_MESSAGE_UNHANDLED_ERROR()
IPC_END_MESSAGE_MAP()
}
@@ -372,12 +371,3 @@ void NPObjectStub::OnEvaluate(const std::string& script,
NPObjectMsg_Evaluate::WriteReplyParams(reply_msg, result_param, return_value);
local_channel->Send(reply_msg);
}
-
-void NPObjectStub::OnSetException(const std::string& message) {
- if (IsPluginProcess()) {
- NOTREACHED() << "Should only be called on NPObjects in the renderer";
- return;
- }
-
- WebBindings::setException(npobject_, message.c_str());
-}