summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 00:35:33 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 00:35:33 +0000
commita3929294e9176abc6085d87cb2c6f8f8417b58f3 (patch)
tree82db7bd5e99b1ddcc4ab0efb9c43decf3698b92c /chrome/renderer/webplugin_delegate_proxy.cc
parent2da90e5f4e6deae2902ea1de2f4a76544885e1d8 (diff)
downloadchromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.zip
chromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.tar.gz
chromium_src-a3929294e9176abc6085d87cb2c6f8f8417b58f3.tar.bz2
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
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index 5e6ba7a..868be43 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -194,7 +194,7 @@ void WebPluginDelegateProxy::PluginDestroyed() {
// When we destroy the plugin instance, the NPObjectStub NULLs out its
// pointer to the npobject (see NPObjectStub::OnChannelError). Therefore,
// we release the object before destroying the instance to avoid leaking.
- NPN_ReleaseObject(npobject_);
+ WebBindings::releaseObject(npobject_);
npobject_ = NULL;
}
@@ -636,7 +636,7 @@ void WebPluginDelegateProxy::Print(gfx::NativeDrawingContext context) {
NPObject* WebPluginDelegateProxy::GetPluginScriptableObject() {
if (npobject_)
- return NPN_RetainObject(npobject_);
+ return WebBindings::retainObject(npobject_);
int route_id = MSG_ROUTING_NONE;
intptr_t npobject_ptr;
@@ -649,7 +649,7 @@ NPObject* WebPluginDelegateProxy::GetPluginScriptableObject() {
channel_host_.get(), route_id, npobject_ptr,
render_view_->modal_dialog_event(), page_url_);
- return NPN_RetainObject(npobject_);
+ return WebBindings::retainObject(npobject_);
}
void WebPluginDelegateProxy::DidFinishLoadWithReason(NPReason reason) {