diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 20:17:01 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 20:17:01 +0000 |
commit | dc55a806cf9d3c410b9cfb9257d6cff6a43f399b (patch) | |
tree | 4ac6257893ae0ae2c6d867221e70ec58fffeb85e /net/base | |
parent | 9ccf3a5b8b87c23018b3340213f9fd56ab03bcbd (diff) | |
download | chromium_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.h | 2 |
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() {} |