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

Unified Diff: content/browser/download/parallel_download_job.h

Issue 2752603002: Propagate server response error and interrupt the download. (Closed)
Patch Set: Merge recent changes in the tree. Created 3 years, 9 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/browser/download/download_worker.cc ('k') | content/browser/download/parallel_download_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/parallel_download_job.h
diff --git a/content/browser/download/parallel_download_job.h b/content/browser/download/parallel_download_job.h
index e6348dd6f1b1533e4e454fbb77f3ee42b40f2a4a..3beafc979b735250dae963ae2e8680637a15aa65 100644
--- a/content/browser/download/parallel_download_job.h
+++ b/content/browser/download/parallel_download_job.h
@@ -49,6 +49,8 @@ class CONTENT_EXPORT ParallelDownloadJob : public DownloadJobImpl,
void OnByteStreamReady(
DownloadWorker* worker,
std::unique_ptr<ByteStreamReader> stream_reader) override;
+ void OnServerResponseError(DownloadWorker* worker,
+ DownloadInterruptReason reason) override;
// Build parallel requests after a delay, to effectively measure the single
// stream bandwidth.
« no previous file with comments | « content/browser/download/download_worker.cc ('k') | content/browser/download/parallel_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698