diff options
author | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-08 14:18:52 +0000 |
---|---|---|
committer | nsylvain@google.com <nsylvain@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-08 14:18:52 +0000 |
commit | 3fc807c4033e513c71dc498ffb6e8273c3a28984 (patch) | |
tree | 59e64f633617d95fc0338f1f2318658111933cb3 /net/url_request | |
parent | 53f137aa005e19a01f7915cffc85350e6f7097f7 (diff) | |
download | chromium_src-3fc807c4033e513c71dc498ffb6e8273c3a28984.zip chromium_src-3fc807c4033e513c71dc498ffb6e8273c3a28984.tar.gz chromium_src-3fc807c4033e513c71dc498ffb6e8273c3a28984.tar.bz2 |
Change the UrlRequestJob base class to be thread safe because the sub class UrlRequestFileJob can be deleted on multiple threads.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_job.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h index ea5539c..7ceaa55 100644 --- a/net/url_request/url_request_job.h +++ b/net/url_request/url_request_job.h @@ -48,7 +48,10 @@ class GURL; class URLRequest; class URLRequestJobMetrics; -class URLRequestJob : public base::RefCounted<URLRequestJob> { +// The URLRequestJob is using RefCounterThreadSafe because some sub classes +// can be destroyed on multiple threads. This is the case of the +// UrlRequestFileJob. +class URLRequestJob : public base::RefCountedThreadSafe<URLRequestJob> { public: URLRequestJob(URLRequest* request); virtual ~URLRequestJob(); |