summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/plugin_channel_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/plugin/plugin_channel_base.h')
-rw-r--r--chrome/plugin/plugin_channel_base.h5
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