diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:37:05 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:37:05 +0000 |
commit | 422c0f17466cddf30fd6815f9d3519a3815264c6 (patch) | |
tree | 416182cac3cc9968888273a8e68e58e51b45358c /chrome/plugin/plugin_channel_base.h | |
parent | bfe5c69fc8cd05558fa5571ff8699a5b0edf0a64 (diff) | |
download | chromium_src-422c0f17466cddf30fd6815f9d3519a3815264c6.zip chromium_src-422c0f17466cddf30fd6815f9d3519a3815264c6.tar.gz chromium_src-422c0f17466cddf30fd6815f9d3519a3815264c6.tar.bz2 |
Fourth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/360043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/plugin_channel_base.h')
-rw-r--r-- | chrome/plugin/plugin_channel_base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/plugin/plugin_channel_base.h b/chrome/plugin/plugin_channel_base.h index bf7db52..0e7a919 100644 --- a/chrome/plugin/plugin_channel_base.h +++ b/chrome/plugin/plugin_channel_base.h @@ -21,7 +21,6 @@ class PluginChannelBase : public IPC::Channel::Listener, public IPC::Message::Sender, public base::RefCountedThreadSafe<PluginChannelBase> { public: - virtual ~PluginChannelBase(); // WebPlugin[Delegate] call these on construction and destruction to setup // the routing and manage lifetime of this object. This is also called by @@ -55,6 +54,10 @@ class PluginChannelBase : public IPC::Channel::Listener, protected: typedef PluginChannelBase* (*PluginChannelFactory)(); + friend class base::RefCountedThreadSafe<PluginChannelBase>; + + virtual ~PluginChannelBase(); + // Returns a PluginChannelBase derived object for the given channel name. // If an existing channel exists returns that object, otherwise creates a // new one. Even though on creation the object is refcounted, each caller |