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

Unified Diff: content/child/npobject_proxy.cc

Issue 17208003: Track NPObject ownership by the originating plugins' NPP identifier. [4/6] (Chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECKs on proxy and stub maps. Created 7 years, 6 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
« no previous file with comments | « content/child/npobject_proxy.h ('k') | content/child/npobject_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npobject_proxy.cc
diff --git a/content/child/npobject_proxy.cc b/content/child/npobject_proxy.cc
index 305ce85b8391516b85ae4b743d756ab7c4f1b131..1f732a51bc41f669bc49729e3da0735a3605c39a 100644
--- a/content/child/npobject_proxy.cc
+++ b/content/child/npobject_proxy.cc
@@ -85,9 +85,10 @@ NPObjectProxy::~NPObjectProxy() {
NPObject* NPObjectProxy::Create(NPChannelBase* channel,
int route_id,
int render_view_id,
- const GURL& page_url) {
+ const GURL& page_url,
+ NPP owner) {
NPObjectWrapper* obj = reinterpret_cast<NPObjectWrapper*>(
- WebBindings::createObject(0, &npclass_proxy_));
+ WebBindings::createObject(owner, &npclass_proxy_));
obj->proxy = new NPObjectProxy(channel, route_id, render_view_id, page_url);
channel->AddMappingForNPObjectProxy(route_id, &obj->object);
return reinterpret_cast<NPObject*>(obj);
« no previous file with comments | « content/child/npobject_proxy.h ('k') | content/child/npobject_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698