diff options
Diffstat (limited to 'chrome/plugin/npobject_util.cc')
-rw-r--r-- | chrome/plugin/npobject_util.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/plugin/npobject_util.cc b/chrome/plugin/npobject_util.cc index ecf5606..3625992 100644 --- a/chrome/plugin/npobject_util.cc +++ b/chrome/plugin/npobject_util.cc @@ -8,10 +8,13 @@ #include "chrome/common/plugin_messages.h" #include "chrome/plugin/npobject_proxy.h" #include "chrome/plugin/plugin_channel_base.h" +#include "webkit/api/public/WebBindings.h" #include "webkit/glue/plugins/nphostapi.h" #include "webkit/glue/plugins/plugin_host.h" #include "webkit/glue/webkit_glue.h" +using WebKit::WebBindings; + // true if the current process is a plugin process, false if it's a renderer // process. static bool g_plugin_process; @@ -200,7 +203,7 @@ void CreateNPVariantParam(const NPVariant& variant, } if (release) - NPN_ReleaseVariantValue(const_cast<NPVariant*>(&variant)); + WebBindings::releaseVariantValue(const_cast<NPVariant*>(&variant)); } void CreateNPVariant(const NPVariant_Param& param, @@ -247,7 +250,7 @@ void CreateNPVariant(const NPVariant_Param& param, result->type = NPVariantType_Object; result->value.objectValue = reinterpret_cast<NPObject*>(param.npobject_pointer); - NPN_RetainObject(result->value.objectValue); + WebBindings::retainObject(result->value.objectValue); break; default: NOTREACHED(); |