Index: content/test/net/url_request_slow_download_job.h |
diff --git a/content/test/net/url_request_slow_download_job.h b/content/test/net/url_request_slow_download_job.h |
index 5e4e76b81fcc05fb413b17c679fd0fa71c2d6b7c..02703b37cc86a7e8c9d0b683a38aecff72913520 100644 |
--- a/content/test/net/url_request_slow_download_job.h |
+++ b/content/test/net/url_request_slow_download_job.h |
@@ -24,6 +24,7 @@ class URLRequestSlowDownloadJob : public net::URLRequestJob { |
static const char kUnknownSizeUrl[]; |
static const char kKnownSizeUrl[]; |
static const char kFinishDownloadUrl[]; |
+ static const char kErrorDownloadUrl[]; |
// Download sizes. |
static const int kFirstDownloadSize; |
@@ -81,14 +82,17 @@ class URLRequestSlowDownloadJob : public net::URLRequestJob { |
// Mark all pending requests to be finished. We keep track of pending |
// requests in |pending_requests_|. |
static void FinishPendingRequests(); |
+ static void ErrorPendingRequests(); |
typedef std::set<URLRequestSlowDownloadJob*> SlowJobsSet; |
static base::LazyInstance<SlowJobsSet>::Leaky pending_requests_; |
void StartAsync(); |
void set_should_finish_download() { should_finish_download_ = true; } |
+ void set_should_error_download() { should_error_download_ = true; } |
int bytes_already_sent_; |
+ bool should_error_download_; |
bool should_finish_download_; |
scoped_refptr<net::IOBuffer> buffer_; |
int buffer_size_; |