summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/plugin_instance.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-19 20:29:31 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-19 20:29:31 +0000
commit7e337ca029db1624254b49dc41560b00e5ca8c89 (patch)
tree743fb28cccc9c019f40781ac89b95911cbf5783b /webkit/glue/plugins/plugin_instance.h
parentd1be67be82f0aaf6d937fd57924046d8f4da1eb0 (diff)
downloadchromium_src-7e337ca029db1624254b49dc41560b00e5ca8c89.zip
chromium_src-7e337ca029db1624254b49dc41560b00e5ca8c89.tar.gz
chromium_src-7e337ca029db1624254b49dc41560b00e5ca8c89.tar.bz2
Committing on behalf of knorton@google.com
Fixes a threading issue in PluginInstance. PluginThreadAsyncCall is supposed to provide a thread safe way of enqueing a callback onto the plugin thread. Currently, it unsafely adds a reference to the PluginInstance when the callback is enqueued. This patch converts PluginInstance from RefCounted to RefCountedThreadSafe. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/plugin_instance.h')
-rw-r--r--webkit/glue/plugins/plugin_instance.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/plugins/plugin_instance.h b/webkit/glue/plugins/plugin_instance.h
index 6d0d610..953c303 100644
--- a/webkit/glue/plugins/plugin_instance.h
+++ b/webkit/glue/plugins/plugin_instance.h
@@ -34,7 +34,7 @@ class MozillaExtensionApi;
// A PluginInstance is an active, running instance of a Plugin.
// A single plugin may have many PluginInstances.
-class PluginInstance : public base::RefCounted<PluginInstance> {
+class PluginInstance : public base::RefCountedThreadSafe<PluginInstance> {
public:
// Create a new instance of a plugin. The PluginInstance
// will hold a reference to the plugin.