summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/plugin_resource.h')
-rw-r--r--ppapi/proxy/plugin_resource.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ppapi/proxy/plugin_resource.h b/ppapi/proxy/plugin_resource.h
index 57fd4ac..5009af8 100644
--- a/ppapi/proxy/plugin_resource.h
+++ b/ppapi/proxy/plugin_resource.h
@@ -10,6 +10,7 @@
#include "ppapi/proxy/host_resource.h"
#include "ppapi/proxy/plugin_dispatcher.h"
#include "ppapi/proxy/plugin_resource_tracker.h"
+#include "ppapi/shared_impl/resource_object_base.h"
// If you inherit from resource, make sure you add the class name here.
#define FOR_ALL_PLUGIN_RESOURCES(F) \
@@ -41,7 +42,7 @@ namespace proxy {
FOR_ALL_PLUGIN_RESOURCES(DECLARE_RESOURCE_CLASS)
#undef DECLARE_RESOURCE_CLASS
-class PluginResource {
+class PluginResource : public ::ppapi::shared_impl::ResourceObjectBase {
public:
PluginResource(const HostResource& resource);
virtual ~PluginResource();
@@ -62,6 +63,8 @@ class PluginResource {
return host_resource_;
}
+ PluginDispatcher* GetDispatcher();
+
private:
// Type-specific getters for individual resource types. These will return
// NULL if the resource does not match the specified type. Used by the Cast()