From df16ed24d3cdb487fa37b7b8cb5d6c74926a95dd Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Tue, 7 Dec 2010 05:15:44 +0000 Subject: Fix webkit URLRequestJob subtypes to handle Kill() correctly. Kill() should prevent calling back into the delegate. So we cancel pending callbacks. BUG=63692 TEST=existing Review URL: http://codereview.chromium.org/5545003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68445 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/blob/blob_url_request_job.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'webkit/blob/blob_url_request_job.h') diff --git a/webkit/blob/blob_url_request_job.h b/webkit/blob/blob_url_request_job.h index 53414cd..c82ebfc 100644 --- a/webkit/blob/blob_url_request_job.h +++ b/webkit/blob/blob_url_request_job.h @@ -9,6 +9,7 @@ #include "base/ref_counted.h" #include "base/scoped_callback_factory.h" #include "base/scoped_ptr.h" +#include "base/task.h" #include "net/base/completion_callback.h" #include "net/base/file_stream.h" #include "net/http/http_byte_range.h" @@ -78,6 +79,7 @@ class BlobURLRequestJob : public net::URLRequestJob { bool byte_range_set_; net::HttpByteRange byte_range_; scoped_ptr response_info_; + ScopedRunnableMethodFactory method_factory_; DISALLOW_COPY_AND_ASSIGN(BlobURLRequestJob); }; -- cgit v1.1