Chromium Code Reviews

Unified Diff: webkit/appcache/appcache_url_request_job.h

Issue 5545003: Fix webkit URLRequestJob subtypes to handle Kill() correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webkit/appcache/appcache_url_request_job.h
diff --git a/webkit/appcache/appcache_url_request_job.h b/webkit/appcache/appcache_url_request_job.h
index 8630815f4e87a8da1d72f6e62134ace82996b00b..7491e7195ee14760b9eedc37c3009af52f7d847e 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_
-

Powered by Google App Engine