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

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

Issue 6628019: Ensure that PP_Instance values are unique within a plugin process in addition... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/resource_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_proxy_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_proxy_impl.cc (revision 77663)
+++ webkit/plugins/ppapi/ppb_proxy_impl.cc (working copy)
@@ -28,9 +28,17 @@
return obj->instance()->pp_instance();
}
+void SetReserveInstanceIDCallback(PP_Module module,
+ PP_Bool (*reserve)(PP_Module, PP_Instance)) {
+ PluginModule* plugin_module = ResourceTracker::Get()->GetModule(module);
+ if (plugin_module)
+ plugin_module->SetReserveInstanceIDCallback(reserve);
+}
+
const PPB_Proxy_Private ppb_proxy = {
&PluginCrashed,
- &GetInstanceForResource
+ &GetInstanceForResource,
+ &SetReserveInstanceIDCallback
};
} // namespace
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698