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

Unified Diff: ppapi/proxy/plugin_var_serialization_rules.cc

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « ppapi/proxy/plugin_var_serialization_rules.h ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_var_serialization_rules.cc
===================================================================
--- ppapi/proxy/plugin_var_serialization_rules.cc (revision 72840)
+++ ppapi/proxy/plugin_var_serialization_rules.cc (working copy)
@@ -118,10 +118,14 @@
return var;
}
-void PluginVarSerializationRules::EndSendPassRef(const PP_Var& var) {
+void PluginVarSerializationRules::EndSendPassRef(const PP_Var& var,
+ Dispatcher* dispatcher) {
// See BeginSendPassRef for an example of why we release our ref here.
+ // The var we have in our inner class has been converted to a host object
+ // by BeginSendPassRef. This means it's not a normal var valid in the plugin,
+ // so we need to use the special ReleaseHostObject.
if (var.type == PP_VARTYPE_OBJECT)
- var_tracker_->Release(var);
+ var_tracker_->ReleaseHostObject(dispatcher, var);
}
void PluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) {
« no previous file with comments | « ppapi/proxy/plugin_var_serialization_rules.h ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698