diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 05:15:44 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-07 05:15:44 +0000 |
commit | df16ed24d3cdb487fa37b7b8cb5d6c74926a95dd (patch) | |
tree | 8ee7f6e768e9b4a4ae1aaf2233c03ea6d96c38a7 /webkit/appcache/appcache_url_request_job.h | |
parent | ad25e60d2adfd1eab3d6a56cba82ec864d6db1fc (diff) | |
download | chromium_src-df16ed24d3cdb487fa37b7b8cb5d6c74926a95dd.zip chromium_src-df16ed24d3cdb487fa37b7b8cb5d6c74926a95dd.tar.gz chromium_src-df16ed24d3cdb487fa37b7b8cb5d6c74926a95dd.tar.bz2 |
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
Diffstat (limited to 'webkit/appcache/appcache_url_request_job.h')
-rw-r--r-- | webkit/appcache/appcache_url_request_job.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/appcache/appcache_url_request_job.h b/webkit/appcache/appcache_url_request_job.h index 8630815..7491e71 100644 --- a/webkit/appcache/appcache_url_request_job.h +++ b/webkit/appcache/appcache_url_request_job.h @@ -7,6 +7,7 @@ #include <string> +#include "base/task.h" #include "net/http/http_byte_range.h" #include "net/url_request/url_request_job.h" #include "webkit/appcache/appcache_entry.h" @@ -20,8 +21,7 @@ namespace appcache { class AppCacheURLRequestJob : public net::URLRequestJob, public AppCacheStorage::Delegate { public: - explicit AppCacheURLRequestJob(net::URLRequest* request, - AppCacheStorage* storage); + AppCacheURLRequestJob(net::URLRequest* request, AppCacheStorage* storage); virtual ~AppCacheURLRequestJob(); // Informs the job of what response it should deliver. Only one of these @@ -143,9 +143,9 @@ class AppCacheURLRequestJob : public net::URLRequestJob, scoped_ptr<net::HttpResponseInfo> range_response_info_; scoped_ptr<AppCacheResponseReader> reader_; net::CompletionCallbackImpl<AppCacheURLRequestJob> read_callback_; + ScopedRunnableMethodFactory<AppCacheURLRequestJob> method_factory_; }; } // namespace appcache #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ - |