summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 04:42:57 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 04:42:57 +0000
commit870b2878217f1b48579b7e0baf1b2fc5e8e6d086 (patch)
tree58e68d023049740d4a116609115d62d4e176e8a3 /chrome
parent99ddfd29900cc4caa1f1ffd979cc09be3f104336 (diff)
downloadchromium_src-870b2878217f1b48579b7e0baf1b2fc5e8e6d086.zip
chromium_src-870b2878217f1b48579b7e0baf1b2fc5e8e6d086.tar.gz
chromium_src-870b2878217f1b48579b7e0baf1b2fc5e8e6d086.tar.bz2
Remove all direct calls to NPN_ functions in WebCore. The replacement for these is the WebKit::WebBindings API.
This will be a 2 sided commit with https://bugs.webkit.org/show_bug.cgi?id=28089 TEST=none BUG=none Review URL: http://codereview.chromium.org/164214 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23012 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/plugin/npobject_util.cc7
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();