diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-26 20:56:39 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-26 20:56:39 +0000 |
commit | 36238bfb18c143bcb09eb7aef78b42a5f8428a12 (patch) | |
tree | 150cfc494ee7c4130d3a58a29a751891a7614092 /net | |
parent | 33da8041706bbe87ec9ff8d95854bf7075ab2d7a (diff) | |
download | chromium_src-36238bfb18c143bcb09eb7aef78b42a5f8428a12.zip chromium_src-36238bfb18c143bcb09eb7aef78b42a5f8428a12.tar.gz chromium_src-36238bfb18c143bcb09eb7aef78b42a5f8428a12.tar.bz2 |
Make URLRequestThrottlerEntryInterface inherit RefCountedThreadSafe,
as a quick fix for bug 64501. yzshen is planning to refactor these
classes significantly, so I won't make a bigger change at this point
(e.g. to prevent use of the interface on different threads).
BUG=64501
TEST=ThreadSanitizer complains no more.
Review URL: http://codereview.chromium.org/5364003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_throttler_entry_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/url_request/url_request_throttler_entry_interface.h b/net/url_request/url_request_throttler_entry_interface.h index 616e1d0..f443b29 100644 --- a/net/url_request/url_request_throttler_entry_interface.h +++ b/net/url_request/url_request_throttler_entry_interface.h @@ -15,7 +15,7 @@ class URLRequestThrottlerHeaderInterface; // Interface provided on entries of the URL request throttler manager. class URLRequestThrottlerEntryInterface - : public base::RefCounted<URLRequestThrottlerEntryInterface> { + : public base::RefCountedThreadSafe<URLRequestThrottlerEntryInterface> { public: URLRequestThrottlerEntryInterface() {} @@ -51,6 +51,7 @@ class URLRequestThrottlerEntryInterface virtual void ReceivedContentWasMalformed() = 0; protected: + friend class base::RefCountedThreadSafe<URLRequestThrottlerEntryInterface>; virtual ~URLRequestThrottlerEntryInterface() {} private: |