summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_resource.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 04:48:30 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 04:48:30 +0000
commit51e1aec0a2197056f0e26e05a88819b611d65cdb (patch)
tree81ee2d6dd3a89795df971a1469bdaaa888d5734d /ppapi/proxy/plugin_resource.h
parentb9f246772a6cb2e64958d9e9d626b3734746fbf9 (diff)
downloadchromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.zip
chromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.tar.gz
chromium_src-51e1aec0a2197056f0e26e05a88819b611d65cdb.tar.bz2
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
Diffstat (limited to 'ppapi/proxy/plugin_resource.h')
-rw-r--r--ppapi/proxy/plugin_resource.h4
1 files changed, 3 insertions, 1 deletions
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<PluginResource> {
public:
PluginResource(const HostResource& resource);
virtual ~PluginResource();