From a3929294e9176abc6085d87cb2c6f8f8417b58f3 Mon Sep 17 00:00:00 2001 From: "jorlow@chromium.org" Date: Thu, 30 Jul 2009 00:35:33 +0000 Subject: Continue eliminating direct NPN_ function calls that go from Chromium code to WebKit code. The long-term goal is to be able to link WebKit as a DLL. TEST=none BUG=none Review URL: http://codereview.chromium.org/160310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22031 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/webplugin_delegate_stub.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/plugin/webplugin_delegate_stub.cc') diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc index a8a42b0..277ff91 100644 --- a/chrome/plugin/webplugin_delegate_stub.cc +++ b/chrome/plugin/webplugin_delegate_stub.cc @@ -18,10 +18,12 @@ #include "third_party/npapi/bindings/npapi.h" #include "third_party/npapi/bindings/npruntime.h" #include "skia/ext/platform_device.h" +#include "webkit/api/public/WebBindings.h" #include "webkit/api/public/WebCursorInfo.h" #include "webkit/glue/webcursor.h" #include "webkit/glue/webplugin_delegate.h" +using WebKit::WebBindings; using WebKit::WebCursorInfo; class FinishDestructionTask : public Task { @@ -296,7 +298,7 @@ void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, page_url_); // Release ref added by GetPluginScriptableObject (our stub holds its own). - NPN_ReleaseObject(object); + WebBindings::releaseObject(object); } void WebPluginDelegateStub::OnSendJavaScriptStream(const std::string& url, -- cgit v1.1