| Index: ppapi/proxy/plugin_dispatcher.cc
|
| ===================================================================
|
| --- ppapi/proxy/plugin_dispatcher.cc (revision 71973)
|
| +++ ppapi/proxy/plugin_dispatcher.cc (working copy)
|
| @@ -36,13 +36,8 @@
|
| 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 @@
|
| 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;
|
| }
|
|
|