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

Unified Diff: content/public/browser/download_interrupt_reason_values.h

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: fix tests Created 3 years, 8 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_stats.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_interrupt_reason_values.h
diff --git a/content/public/browser/download_interrupt_reason_values.h b/content/public/browser/download_interrupt_reason_values.h
index 2db302da5d80ab172c12b0e01437152676d47fc1..55ce36fa60f81b6692977b893dee34bb349e9423 100644
--- a/content/public/browser/download_interrupt_reason_values.h
+++ b/content/public/browser/download_interrupt_reason_values.h
@@ -116,6 +116,12 @@ INTERRUPT_REASON(SERVER_FORBIDDEN, 36)
// may not be the intended server.
INTERRUPT_REASON(SERVER_UNREACHABLE, 37)
+// The server sent fewer bytes than the content-length header. It may indicate
+// that the connection was closed prematurely, or the Content-Length header was
+// invalid. The download is only interrupted if strong validators are present.
+// Otherwise, it is treated as finished.
+INTERRUPT_REASON(SERVER_CONTENT_LENGTH_MISMATCH, 38)
+
// User input.
// The user canceled the download.
« no previous file with comments | « content/browser/download/download_stats.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698