Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: webkit/plugins/ppapi/ppapi_webplugin_impl.cc

Issue 15007012: Track NPObject ownership by the originating plugins' NPP identifier. [2/3] (Chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing forward-define. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppapi_webplugin_impl.cc
diff --git a/webkit/plugins/ppapi/ppapi_webplugin_impl.cc b/webkit/plugins/ppapi/ppapi_webplugin_impl.cc
index 30820fbecc10de58a3da6e5bab671c42b3bcc523..9371c80063e3850b525c56ad0098ded5479e7d26 100644
--- a/webkit/plugins/ppapi/ppapi_webplugin_impl.cc
+++ b/webkit/plugins/ppapi/ppapi_webplugin_impl.cc
@@ -148,6 +148,13 @@ NPObject* WebPluginImpl::scriptableObject() {
return message_channel_np_object;
}
+NPP WebPluginImpl::pluginNPP() {
+ // We must return the same pointer that the NPP parameter to NPObject binding
+ // calls will contain. WebKit will treat it as opaque, though, so it needn't
+ // be an actual NPP_t instance.
jamesr 2013/05/21 18:20:21 this is too crazy. if the type is NPP_t*, you real
Wez 2013/05/22 06:55:25 Done.
+ return reinterpret_cast<NPP>(this);
+}
+
bool WebPluginImpl::getFormValue(WebString& value) {
return false;
}
« webkit/plugins/npapi/webplugin_impl.h ('K') | « webkit/plugins/ppapi/ppapi_webplugin_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698