summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_globals.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-20 22:51:01 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-20 22:51:01 +0000
commit2f59e3827f5bf5dc1cad0a0a393feef965abc6bc (patch)
tree156a9acb7570a78e31256f03726bd0b8984c8f3e /ppapi/proxy/plugin_globals.cc
parent7969c78bba2a31c8b50f4e19e497bf81694f6388 (diff)
downloadchromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.zip
chromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.tar.gz
chromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.tar.bz2
Remove TrackerBase.
Fold the methods it provided into the PpapiGlobals base class. Move the instance and module tracking in the webkit/plugins/ppapi dir out of the HostResourceTracker (since it has nothing to do with resources) and into the HostGlobals object (which provides general global object tracking). TEST=none BUG=none Review URL: http://codereview.chromium.org/8335001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/plugin_globals.cc')
-rw-r--r--ppapi/proxy/plugin_globals.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/ppapi/proxy/plugin_globals.cc b/ppapi/proxy/plugin_globals.cc
index 888c3bd..9aa5278 100644
--- a/ppapi/proxy/plugin_globals.cc
+++ b/ppapi/proxy/plugin_globals.cc
@@ -4,6 +4,8 @@
#include "ppapi/proxy/plugin_globals.h"
+#include "ppapi/proxy/plugin_dispatcher.h"
+
namespace ppapi {
namespace proxy {
@@ -27,5 +29,18 @@ VarTracker* PluginGlobals::GetVarTracker() {
return &plugin_var_tracker_;
}
+FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst,
+ proxy::InterfaceID id) {
+ PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst);
+ if (dispatcher)
+ return dispatcher->GetFunctionAPI(id);
+ return NULL;
+}
+
+PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) {
+ // Currently proxied plugins don't use the PP_Module for anything useful.
+ return 0;
+}
+
} // namespace proxy
} // namespace ppapi