summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/plugin_dispatcher.cc')
-rw-r--r--ppapi/proxy/plugin_dispatcher.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
index ff7ccb7..8de9cea 100644
--- a/ppapi/proxy/plugin_dispatcher.cc
+++ b/ppapi/proxy/plugin_dispatcher.cc
@@ -36,13 +36,8 @@ PluginDispatcher::PluginDispatcher(base::ProcessHandle remote_process_handle,
ShutdownModuleFunc shutdown_module)
: Dispatcher(remote_process_handle, get_interface),
init_module_(init_module),
- shutdown_module_(shutdown_module),
- plugin_resource_tracker_(new PluginResourceTracker(
- ALLOW_THIS_IN_INITIALIZER_LIST(this))),
- plugin_var_tracker_(new PluginVarTracker(
- ALLOW_THIS_IN_INITIALIZER_LIST(this))) {
- SetSerializationRules(
- new PluginVarSerializationRules(plugin_var_tracker_.get()));
+ shutdown_module_(shutdown_module) {
+ SetSerializationRules(new PluginVarSerializationRules);
// As a plugin, we always support the PPP_Class interface. There's no
// GetInterface call or name for it, so we insert it into our table now.
@@ -66,6 +61,13 @@ void PluginDispatcher::SetGlobal(PluginDispatcher* dispatcher) {
g_dispatcher = dispatcher;
}
+// static
+PluginDispatcher* PluginDispatcher::GetForInstance(PP_Instance instance) {
+ // TODO(brettw) implement "real" per-instance dispatcher map.
+ DCHECK(instance != 0);
+ return Get();
+}
+
bool PluginDispatcher::IsPlugin() const {
return true;
}