From 51e1aec0a2197056f0e26e05a88819b611d65cdb Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 11 Aug 2011 04:48:30 +0000 Subject: Convert the PluginResource to be refcounted. This is to make the future transition to a shared resource tracker (which will use refcounted resources) easier. There should be no behavior change. Review URL: http://codereview.chromium.org/7608030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96324 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/plugin_resource.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ppapi/proxy/plugin_resource.h') diff --git a/ppapi/proxy/plugin_resource.h b/ppapi/proxy/plugin_resource.h index 3abe9cb..703a529 100644 --- a/ppapi/proxy/plugin_resource.h +++ b/ppapi/proxy/plugin_resource.h @@ -6,6 +6,7 @@ #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ #include "base/basictypes.h" +#include "base/memory/ref_counted.h" #include "ppapi/c/pp_instance.h" #include "ppapi/proxy/host_resource.h" #include "ppapi/proxy/plugin_dispatcher.h" @@ -45,7 +46,8 @@ namespace proxy { FOR_ALL_PLUGIN_RESOURCES(DECLARE_RESOURCE_CLASS) #undef DECLARE_RESOURCE_CLASS -class PluginResource : public ::ppapi::ResourceObjectBase { +class PluginResource : public ::ppapi::ResourceObjectBase, + public base::RefCounted { public: PluginResource(const HostResource& resource); virtual ~PluginResource(); -- cgit v1.1