Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1275)

Unified Diff: webkit/blob/view_blob_internals_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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/blob/view_blob_internals_job.h
diff --git a/webkit/blob/view_blob_internals_job.h b/webkit/blob/view_blob_internals_job.h
index 913531c2f3339fcde8b4f6234fb467e26e960f76..2f557ae191c2bb75a4bf828737fd7bcac08f193e 100644
--- a/webkit/blob/view_blob_internals_job.h
+++ b/webkit/blob/view_blob_internals_job.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/task.h"
#include "net/url_request/url_request_simple_job.h"
namespace net {
@@ -30,6 +31,7 @@ class ViewBlobInternalsJob : public URLRequestSimpleJob {
std::string* charset,
std::string* data) const;
virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
+ virtual void Kill();
private:
~ViewBlobInternalsJob();
@@ -40,6 +42,7 @@ class ViewBlobInternalsJob : public URLRequestSimpleJob {
std::string* out);
BlobStorageController* blob_storage_controller_;
+ ScopedRunnableMethodFactory<ViewBlobInternalsJob> method_factory_;
DISALLOW_COPY_AND_ASSIGN(ViewBlobInternalsJob);
};

Powered by Google App Engine
This is Rietveld 408576698