summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 20:17:01 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 20:17:01 +0000
commitdc55a806cf9d3c410b9cfb9257d6cff6a43f399b (patch)
tree4ac6257893ae0ae2c6d867221e70ec58fffeb85e /net/base
parent9ccf3a5b8b87c23018b3340213f9fd56ab03bcbd (diff)
downloadchromium_src-dc55a806cf9d3c410b9cfb9257d6cff6a43f399b.zip
chromium_src-dc55a806cf9d3c410b9cfb9257d6cff6a43f399b.tar.gz
chromium_src-dc55a806cf9d3c410b9cfb9257d6cff6a43f399b.tar.bz2
Make NetLog::EventParameters RefCountedThreadSafe.
This avoids a potential race condition in events logged on other threads and then passed to the IO thread by a ForwardingNetLog (Such as ProxyResolvers do). BUG=64188 TEST=none Review URL: http://codereview.chromium.org/5354001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/net_log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/net_log.h b/net/base/net_log.h
index aa0b70e5..ad775fa 100644
--- a/net/base/net_log.h
+++ b/net/base/net_log.h
@@ -81,7 +81,7 @@ class NetLog {
// Base class for associating additional parameters with an event. Log
// observers need to know what specific derivations of EventParameters a
// particular EventType uses, in order to get at the individual components.
- class EventParameters : public base::RefCounted<EventParameters> {
+ class EventParameters : public base::RefCountedThreadSafe<EventParameters> {
public:
EventParameters() {}
virtual ~EventParameters() {}