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

Unified Diff: content/test/net/url_request_slow_download_job.h

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to r180302 Created 7 years, 11 months 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
« no previous file with comments | « content/public/test/mock_download_manager.cc ('k') | content/test/net/url_request_slow_download_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « content/public/test/mock_download_manager.cc ('k') | content/test/net/url_request_slow_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698