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

Unified Diff: ppapi/proxy/plugin_dispatcher.cc

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (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_dispatcher.h ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698