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

Unified Diff: content/child/plugin_param_traits.h

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_util.cc ('k') | content/child/plugin_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/plugin_param_traits.h
diff --git a/content/child/plugin_param_traits.h b/content/child/plugin_param_traits.h
index b8495c63f87a08229c0bb66d23cb7f25357f3c5d..4e45b038c5aabc07164665000c7de02659cdc2c8 100644
--- a/content/child/plugin_param_traits.h
+++ b/content/child/plugin_param_traits.h
@@ -31,7 +31,9 @@ enum NPVariant_ParamEnum {
NPVARIANT_PARAM_DOUBLE,
NPVARIANT_PARAM_STRING,
// Used when when the NPObject is running in the caller's process, so we
- // create an NPObjectProxy in the other process.
+ // create an NPObjectProxy in the other process. To support object ownership
+ // tracking the routing-Id of the NPObject's owning plugin instance is
+ // passed alongside that of the object itself.
NPVARIANT_PARAM_SENDER_OBJECT_ROUTING_ID,
// Used when the NPObject we're sending is running in the callee's process
// (i.e. we have an NPObjectProxy for it). In that case we want the callee
@@ -49,6 +51,7 @@ struct NPVariant_Param {
double double_value;
std::string string_value;
int npobject_routing_id;
+ int npobject_owner_id;
};
struct NPIdentifier_Param {
« no previous file with comments | « content/child/npobject_util.cc ('k') | content/child/plugin_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698